Boost logo

Boost :

Subject: Re: [boost] ABI issues with -std
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2018-08-20 08:26:07

On 08/20/18 03:42, Peter Dimov via Boost wrote:
> But in general, there's no practical way to support mixed standards
> unless we change something in the way we do things, and I don't know
> what. If you compile library A with C++03 and library B with C++11 and
> both use shared_ptr, in a program that uses both there will be an ODR
> violation because shared_ptr will use std::atomic when present (in B)
> and will not use it when not (in A).

Then the only solution I see is to build separate binaries for different
C++ versions.

Boost list run by bdawes at, gregod at, cpdaniel at, john at