Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-07-06 16:31:29


OK I see this now. I was confused as I never noticed I did this. I have
used static member functions a lot so that confused me also. Now I have a
question.

I noticed I used something like the following a few times (access.hpp)

template<class U>
static inline void smart_cast_reference(U& u) {}

template <typename T>
void foo(int c)
{
   smart_cast_reference<int>(c);
}

I wouldn't expect that to cause any linking problems (note the "inline")
which is perhaps why no other compilers complain. What SHOULD I be doing
here?

Robert Ramey


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk