What is the status of N2965 - std::bases and std::direct_bases?

3.2k views Asked by At

I'm writing a template which really needs to know about all the base classes of its parameter type. The std::bases trait proposed by N2965 is perfect for this, however I can't find any reliable information about its status.

Is this proposal still alive? If so, when might we be likely to see it, standardized? If not, are there any other proposals around that would provide this capability?

As a follow-up, g++ has the two N2965 traits available as std::tr2::bases and std::tr2::direct_bases. Are there any extensions for Clang and/or Intel that can provide equivalent functionality?

1

There are 1 answers

3
Shafik Yaghmour On BEST ANSWER

As far as I can tell this was rejected we can see this from N3296: C++ FCD Comment Status Rev 6 which has the following comment:

Paper n2965 was largely rejected after the last CD on the grounds there was no associated national body comment, so I am submitting a national body comment this time.

and the disposition ended up being:

REJECTED

There is no consensus to adopt this proposal at this time

We can find a comment from Jonathan Wakely which points us to the gcc patches email about implementing N2965 into gcc and he notes that there is no TR2 anymore.

I don't see any follow-up proposals for this