|
-
Jun 22nd, 2014, 10:27 AM
#8
Re: How to refer to class which was not yet declared?
A class static member function cannot access a non-static member. If you want a static member function to access members of a class instance you will need to pass a pointer to the class instance as part of the static function parameters.
Why do you want IsDirectory to be static?
All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/
C++23 Compiler: Microsoft VS2022 (17.6.5)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|