I see a C++ function being defined as below:
int virtual inline fun()
{
   return xxx;
}
I wonder what it means? anyone can explain it?
I see a C++ function being defined as below:
int virtual inline fun()
{
   return xxx;
}
I wonder what it means? anyone can explain it?
 
    
     
    
    It simply means the code doesn't compile.
Only non-static methods can be virtual. In your example fun is a free function so virtual cannot be applied to it.
