cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Doubt about static functions declaration
Doubt about static functions declaration in classes
Mar 16, 2014 at 1:23pm UTC
Nebur
(68)
Hey, I want to declare a static function that returns a boolean and my question is: where should I explicitly declare it as an static function? In the .hpp, in the .cpp, or in both places?
Thanks a lot!
Mar 16, 2014 at 1:37pm UTC
MiiNiPaa
(8886)
You should declare it as static in class declaration. Keep static keyword out of function definition.
Mar 16, 2014 at 1:49pm UTC
Nebur
(68)
Thanks a lot!
Topic archived. No new replies allowed.