On 10/4/20 1:10 PM, Paul Smith wrote:
On Sun, 2020-10-04 at 03:36 -0400, Paul Smith wrote:
I have a templated class C that required its type T to have operator
bool() defined in order to work properly.
Never mind, I think there was some local error where things were not
being recompiled when t
On Sun, 2020-10-04 at 03:36 -0400, Paul Smith wrote:
> I have a templated class C that required its type T to have operator
> bool() defined in order to work properly.
Never mind, I think there was some local error where things were not
being recompiled when they should be. I don't know why that
On Sun, 2020-10-04 at 03:36 -0400, Paul Smith wrote:
> But!! When I nm the individual cxx.o files none of these operator
> symbols appear, at all!
As you might have expected, this turns out to be wrong: the symbols
were just in a set of object files that I did not expect. I'll see if there's
an
On Sun, 2020-10-04 at 03:36 -0400, Paul Smith wrote:
> I made it static inline like this:
>
> static inline bool operator!(T t) { return t != T::EMPTY; }
Obviously in my real code I used t == T::EMPTY here... :-/