Boost logo

Boost :

Subject: Re: [boost] static in_class constants
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-13 11:56:54


AMDG

John Maddock wrote:
> 2) I notice you saying that you're getting linker errors - that should
> only happen if you're taking the address of the constants somewhere -
> if that's a use case that you want to support, then you need a
> definition for the constants somewhere - suitably guarded by the right
> Boost.Config macros (sorry can't remember what off the top of my head).

I seem to recall getting linker errors passing such constants to functions
that take a const reference parameter. (like std::vector::push_back.)

In Christ,
Steven Watanabe


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