Boost logo

Boost :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2004-12-19 09:01:24

Albeit this obviously does work with my compilers,
I have to admit that I do not understand why.

Can you please explain to me why

template <typename T> T static_<T>::member;

does not violate the ODR rule?

If I do the very same with
int aInt;
in my header, the linker gives me a fatal "already defined" error.

Thank you,

Boost list run by bdawes at, gregod at, cpdaniel at, john at