CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Paul McKenzie

Search: Search took 1.85 seconds.

  1. Re: Workaround for accessing non-static members inside static member functions

    This is rule b) I mentioned above. There is no instance of an A or B object in that code.

    Regards,

    Paul McKenzie
  2. Re: Workaround for accessing non-static members inside static member functions

    There is no such thing as a "workaround" here. The rules of C++ are specific -- to access non-static members of a class from outside the class itself:

    a) The members must have an access specifier...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured