Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~389 People Reached
Favorite Forums
Favorite Tags
c++ x 8
Member Avatar for pedz

If NOT_WORKING is defined, the following program gives me linker errors: /usr/bin/ld: Undefined symbols: Definer<int, 1>::d Definer<int, 2>::d Definer<int, 3>::d Definer<int, 4>::d collect2: ld returned 1 exit status But if NOT_WORKING is not defined it compiles and runs. I can't figure out: 1) Why those things are not getting instanciated. …

Member Avatar for pedz
0
98
Member Avatar for pedz

The [] operator must be a non-static member function. I have been able to write a class and overload the [] operator. But in my weird case, I would like to have an array of elements:[CODE]MyClass elements[6];[/CODE]But I don't actually want element access[CODE]element[2][/CODE]to use regular pointer arithmetic; rather I'd like …

Member Avatar for pedz
0
180
Member Avatar for pedz

I'm trying to understand Argument Dependent Lookup. The classic example is: [CODE]namespace NS { class T { }; void f(T); } NS::T parm; int main() { f(parm); // OK: calls NS::f }[/CODE] I'm looking at this [URL="http://www.kuzbass.ru:8086/docs/isocpp/basic.html#basic.lookup.koenig"]page[/URL] and in particular this statement: [QUOTE]If T is a class type, its associated …

Member Avatar for Lerner
0
111