Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-09-17 09:21:00


Hi there,

I've got a question regarding the declaration and definition
of static data members of class templates. This question came
up when trying to get MPL to play with vacpp.

Is the following definition of foo::value legal? Do I have to
supply a definition? Or am I not allowed to supply one?

---%<---
template <typename T>
struct foo
{
  static const T value = 0;
};

template <typename T> const T foo<T>::value;
--->%---

TIA, Markus


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk