Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-05-05 11:28:49


Actually, the dummy constructor should just be removed, replaced with use
of the static_object. I'll take care of this.

Cheers,
Jeremy

On Thu, 3 May 2001, John Maddock wrote:

John_M> Jeremy,
John_M>
John_M> The concept_architype.hpp header contains initialised data:
John_M>
John_M> static detail::dummy_constructor dummy_cons;
John_M>
John_M> This means that the header will produce ODR violations if it is used in
John_M> multiple translation units, and also messes up precompiled headers. As
John_M> this header is included by a number of other boost (graph) headers, I
John_M> wonder if this can be fixed, maybe by changing to:
John_M>
John_M> inline const detail::dummy_constructor& dummy_cons()
John_M> {
John_M> static detail::dummy_constructor _dummy_cons;
John_M> return _dummy_cons;
John_M> }
John_M>
John_M> or something similar.
John_M>
John_M> - John Maddock
John_M> http://ourworld.compuserve.com/homepages/john_maddock/
John_M>

----------------------------------------------------------------------
 Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
 Ph.D. Candidate email: jsiek_at_[hidden]
 Univ. of Notre Dame work phone: (219) 631-3906
----------------------------------------------------------------------


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