$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Steve Clamage (Stephen.Clamage_at_[hidden])
Date: 2005-07-06 19:38:08
Robert Ramey wrote:
> 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
>
This example is OK because the instance of smart_cast_reference that is called
does not depend on foo's template parameter.
--- Steve Clamage, stephen.clamage_at_[hidden]