Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2017 09:28:56 +1100
From:      andrew clarke <mail@ozzmosis.com>
To:        Yuri <yuri@freebsd.org>
Cc:        "ports@freebsd.org" <ports@freebsd.org>
Subject:   Re: Correct __cplusplus where std::tr1::function turns into std::function ?
Message-ID:  <20171129222856.wuiw7h3sqgd3r2as@ozzmosis.com>
In-Reply-To: <1c147960-69be-0d66-84d4-146acb8fb752@freebsd.org>
References:  <1c147960-69be-0d66-84d4-146acb8fb752@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed 2017-11-29 13:32:32 UTC-0800, Yuri (yuri@freebsd.org) wrote:

> |This code picks the latter (tr1) version on 11,1-STABLE while the correct
> choice is the former variant. #elif __cplusplus >= 201103L ||
> (defined(_MSC_VER) && _MSC_VER >= 1800) using std::function; #else using
> std::tr1::function; #endif symbols What is the correct __cplusplus then? And
> how to find it for other symbols for future reference? (Googling failed to
> find it.) Thanks! Yuri |

You probably need to enable C++11 support:

clang++ -std=c++11

otherwise clang++ sets __cplusplus to 199711L.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171129222856.wuiw7h3sqgd3r2as>