Hello Andreas, 

in old incarnations of g++, a template declaration could come after the
actual use of the template, but with new code, the template declaration
must be available before the first instantiation, meaning: this
declaration in line 55 must be moved before the actual use in line 48. 

> util.h:55:3: note: 'template<class T> T throw_errno_if_eq(T, T, const char*, 
> const char*)' declared here, later in the translation unit
>  T throw_errno_if_eq( T x, T y, const char* a, const char* b = 0 )
>    ^

Hope that helps, tomorrow I could also dig into it and prepare a patch. 

Best, 
Gert 


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to