|
-
Jun 22nd, 2014, 11:54 AM
#10
Re: How to refer to class which was not yet declared?
As IsDirectory is now not static, it can only be referenced via an instance of the class and not via the class name.
Any non-static member has to be referenced via a class instance. Static members are referenced via the class name. If you need to use IsDirectory() without reference to a class instance then it needs to be static which means it cannot directly access any non-static members.
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
|