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?

12th Feb 2017, 12:13 PM
meet
meet - avatar
1 Antwort
+ 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 }
12th Feb 2017, 1:15 PM
Megatron
Megatron - avatar