[cxx-abi-dev] Library ABI version markers

Jason Merrill jason at redhat.com
Tue Oct 30 21:02:45 UTC 2012


On 10/26/2012 09:32 PM, David Vandevoorde wrote:
> I'd be interested in a small example illustrating the kind of usage we'd expect to see in the standard library.

I'm thinking of things like

template <typename CharT, typename Traits, typename Alloc>
class [[abi_tag ("11")]] basic_string; // ABI change from refcounting

template <class T>
struct complex {
    ...
    // return type changed from C++98
    [[abi_tag ("11")]] constexpr T real() { return _M_real; }
    ...
};

Jason



More information about the cxx-abi-dev mailing list