C++ Logo

SG10

Advanced search

Subject: Re: [SG10] Feature test macro for transactional memory
From: Nelson, Clark (clark.nelson_at_[hidden])
Date: 2014-12-30 16:07:07


> On December 1, SG5 held a teleconference where the feature test
> macro
>
> __cpp_transactional_memory
>
> was unanimously approved, and I was directed to put it forward
> to SG10.
>
> Clark, what do I need to do to have it integrated into SD-6?

SD-6 exists mainly to avoid the appearance that features of the standard
itself are optional. Because supporting a TS is optional by definition, I
think that a TS really should define its own feature-test macro(s). That
happened with the filesystem TS and with the library fundamentals TS.

Because the TM TS is only in the PDTS stage now, it's not too late to add
it before the DTS is produced.

Unfortunately the parallelism TS is (virtually) in DTS stage, and it
mentions no feature-test macro. I don't know what should be done about
that.

Quite aside from all that, there is a question whether descriptions of
feature-test macros from TSes should also be duplicated or summarized in
SD-6. That is not something we have done so far, and my personal
inclination is to say that we probably shouldn't, but I don't remember
SG10 ever discussing the question before.

Clark


SG10 list run by herb.sutter at gmail.com