Subject: Re: [boost] [config] std::unique_ptr, std::ref detection?
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2012-02-28 11:35:38
On Feb 28, 2012, at 8:20 AM, Peter Dimov wrote:
> Suppose I want to implement a shared_ptr constructor taking std::unique_ptr. To avoid breaking pre-C++11 compilers, I need to, at least, know whether <memory> contains std::unique_ptr. (I'd also like to know if there's std::ref in <functional> because the specification of the constructor uses it.) But the config library doesn't seem to provide a way. There's no macro for std::unique_ptr, and there's no macro for "generic C++11 compiler and library".
At the moment, I am using:
#if __cplusplus >= 201103L
Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>
A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
-- Yu Suzuki
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk