User Profile

Collapse

Profile Sidebar

Collapse
jefe
jefe
Last Activity: Jul 26 '10, 12:44 AM
Joined: May 23 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jefe
    started a topic Header files problem ... recursive includes
    in C

    Header files problem ... recursive includes

    I have 8 header files in a cpp project, and some cross refer to each other:

    ie
    Code:
    #include "Observer.h" in file "Subject.h"
    
    
    #include "Subject.h" in file "Observer.h"
    and the compiler is getting into an infinite recursive loop with these includes.

    Is there any command options i can use to specify that a file should only be...
    See more | Go to post

  • jefe
    replied to C++ STL Maps problem
    in C
    Thanks, those were helpful replies, I have implemented them and :,

    I tried that adjustment and get the same error msg, reported, albeit in a different place:

    'In member function bool CWord508::opera tor<(const CWord508&)'
    passing const CWord508' as `this' argument of `char* CWord508::get() ' discards qualifiers"

    Code:
    bool CWord508::operator<( const CWord508& a) const
    ...
    See more | Go to post

    Leave a comment:


  • jefe
    started a topic C++ STL Maps problem
    in C

    C++ STL Maps problem

    I am getting a strange build error message when creating a simple STL map.

    "stl_functi on.h passing `const CWord508' as `this' argument of `bool CWord508::opera tor<(CWord508)' discards qualifiers"

    The error is triggered on the map.insert(<key object, other object> line

    I have provided a operator < function on the key object class:

    Code:
    class CWord508 { 
         char str[20];
    ...
    See more | Go to post
No activity results to display
Show More
Working...