no match for 'operator++' in '++*((integer*)this)->integer::d + (+((unsigned int)x) * 8u)))'

note:candidates are: bool operator++(std::bitset<4u>&

Wow is the compiler really smart, because thats exactly what I wanted it to do, use the bool operator++(std::bitset<4> & d) function.

Any one know how I can gently encourage the compiler into behaving?
Is a space needed between operator and ++?
in short what I want to do is declare a ++ operator for the bitset class so I can use a bitset in my integer class. my integer class is already almost done, but i want to change the implementation from int * to a digit *, where my digit class uses a bitset implementation. Thanks!
closed account (DSLq5Di1)
http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.14
Topic archived. No new replies allowed.