0
When i perform a for loop in function within a class than there occurs a error such as "function for is not an expanded inline"
what should I do?
1 Answer
+ 3
If you are going for c++ language.
the functions in class are always inline. loops are not expected in inline functions so this warning comes.
it is only a warning and doesn't affects your program. If you want to rectify it you need to declare it outside class.
class ABC{
public:
void function();
.
.
.
};
void ABC::function()
{
......\\for loop
}