From: Paolo Carlini Date: Sun, 3 Jan 2010 12:06:59 +0000 (+0000) Subject: stl_pair.h (pair<>::pair(_U1&&, const _T2&), [...]): Use std::is_constructible instea... X-Git-Tag: releases/gcc-4.5.0~1434 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8685e159ea52ae6507622f2a81e73f00ace490f;p=thirdparty%2Fgcc.git stl_pair.h (pair<>::pair(_U1&&, const _T2&), [...]): Use std::is_constructible instead of std::is_convertible. 2010-01-03 Paolo Carlini * include/bits/stl_pair.h (pair<>::pair(_U1&&, const _T2&), pair<>::pair(const _T1&, _U2&&), pair<>::pair(_U1&&, _U2&&)): Use std::is_constructible instead of std::is_convertible. From-SVN: r155585 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index dcc25f38e41b..a4c525ccf3c7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2010-01-03 Paolo Carlini + + * include/bits/stl_pair.h (pair<>::pair(_U1&&, const _T2&), + pair<>::pair(const _T1&, _U2&&), pair<>::pair(_U1&&, _U2&&)): + Use std::is_constructible instead of std::is_convertible. + 2010-01-01 Paolo Carlini Revert last change, reinstantiate basic_string and vstring tests. diff --git a/libstdc++-v3/include/bits/stl_pair.h b/libstdc++-v3/include/bits/stl_pair.h index 4a9fb6be485c..9d7338bc55bf 100644 --- a/libstdc++-v3/include/bits/stl_pair.h +++ b/libstdc++-v3/include/bits/stl_pair.h @@ -90,20 +90,20 @@ _GLIBCXX_BEGIN_NAMESPACE(std) #ifdef __GXX_EXPERIMENTAL_CXX0X__ // DR 811. template::value>::type> + std::enable_if::value>::type> pair(_U1&& __x, const _T2& __y) : first(std::forward<_U1>(__x)), second(__y) { } template::value>::type> + std::enable_if::value>::type> pair(const _T1& __x, _U2&& __y) : first(__x), second(std::forward<_U2>(__y)) { } template::value - && std::is_convertible<_U2, _T2>::value>::type> + std::enable_if::value + && std::is_constructible<_T2, _U2&&>::value>::type> pair(_U1&& __x, _U2&& __y) : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }