7 Jul
                
                    2005
                
            
            
                7 Jul
                
                '05
                
            
            
            
        
    
                4:38 a.m.
            
        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@sun.com