Boost logo

Boost :

Subject: Re: [boost] [smart_ptr] error with nullptr_t
From: Julian Gonggrijp (j.gonggrijp_at_[hidden])
Date: 2012-12-19 06:45:36


Peter Dimov wrote:

> Not for this, where "this" is a C++11 compiler without a (complete) C++11 library.

I'm sorry for missing this discussion before. If you installed clang
3.1 from MacPorts, which from earlier posts in this thread seems to be
the case for Vicente, the solution is to install libc++ from MacPorts
and define the following rule in your user-config.jam:

using clang
    : 3.1_11
    : clang++-mp-3.1
    : <compileflags>-stdlib=libc++
      <compileflags>-std=c++11
      <linkflags>-stdlib=libc++
    ;

After that, whenever you want to compile C++11 code with clang just
use <toolset>clang-3.1_11 and everything should work as expected.

HTH,
-Julian


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