30 Oct
2017
30 Oct
'17
9:14 a.m.
On Mon, Oct 30, 2017 at 12:47 AM, Andrzej Krzemienski via Boost <boost@lists.boost.org> wrote:
The following is a test case in type_traits by Vinnie Falco: https://github.com/boostorg/type_traits/pull/52/commits/9779157a787620d16330...
My idea for a fix is to just specialize `type_traits::is_default_constructible` for `std::pair<T,U>` where U is a built-in type, by returning `is_default_constructible<T>`. This solves the problem for Optional, which invokes `is_default_constructible` with `std::pair<T, bool>` in this specific case. Disclosure: Peter Dimov doesn't like it.