Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-05-03 06:08:56


Jeremy,

The concept_architype.hpp header contains initialised data:

  static detail::dummy_constructor dummy_cons;

This means that the header will produce ODR violations if it is used in
multiple translation units, and also messes up precompiled headers. As
this header is included by a number of other boost (graph) headers, I
wonder if this can be fixed, maybe by changing to:

inline const detail::dummy_constructor& dummy_cons()
{
   static detail::dummy_constructor _dummy_cons;
   return _dummy_cons;
}

or something similar.

- John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/


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