13 Jan
2008
13 Jan
'08
2:40 p.m.
Hello,
I'd like to provide a function with an unique identifier:
void f(size_t UniqueId);
This function is going to be called from within class member functions
like that:
class a {
a() { f((size_t)this); }
};
Right now the old style cast works. The question is how do I make
conversion using numeric_cast? If I use:
f(boost::numeric_cast