This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] include <bits/functexcept.h> in <variant>


On 14/10/16 02:25 -0700, Tim Shen wrote:
On some platforms the compiler complains about __try and __catch not
defined. I hope <bits/functexcept.h> is the right thing to include.

Yes, that's right. OK for trunk, thanks.

By the way, I'm intending to add __throw_bad_variant_access_fmt to
bits/functexcept.h and make it use __snprintf_lite() so that we can
do:

      __throw_bad_variant_access_fmt("cannot access alternative %zu "
          "of std::variant because index() is %zu", _Np, __v.index());

(Thanks to Nico Josuttis for the suggestion).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]