
31 May
2007
31 May
'07
4:52 p.m.
Andy wrote:
I added 'inline' to the non-template functions. I don't get the error for the templated functions. I can still add 'inline' to those if I should/need to. I am using visual studio .NET, maybe that makes a difference?
I uploaded uuid_v9.zip to the boost vault. Will you give it a try for me?
You need to add an explicit 'inline' specifier to any function defined out of class but in a header, regardless if it's a templatized function or not. This instructs the compiler to treat this function to be visible inside the current translation unit only (even if the compiler decides not to inline the function), avoiding multiple symbol definitions if the header is included from more than one translation unit. Regards Hartmut