diff options
author | dim <dim@FreeBSD.org> | 2014-03-05 19:30:36 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-03-05 19:30:36 +0000 |
commit | 22ca1336dcfb663d86a6892dbe1e48eee20bb6db (patch) | |
tree | 72f4bceef54682e8e577b4ddd08c0ad24ea08ff6 /contrib/libc++/include/codecvt | |
parent | a5552de0b34d11a40bdc1d8e53fa44a923b6b1a8 (diff) | |
download | FreeBSD-src-22ca1336dcfb663d86a6892dbe1e48eee20bb6db.zip FreeBSD-src-22ca1336dcfb663d86a6892dbe1e48eee20bb6db.tar.gz |
MFC r261283:
Import libc++ 3.4 release. This contains a lot of bugfixes, and some
preliminary support for C++1y.
MFC r261604:
HEAD is not buildable for the past day. Commit a 'quick fix' in order to permit
buildworld to complete.
Reviewed by: theraven
MFC r261608:
Apply a cleaner solution for the sign warnings that can occur when
compiling libc++'s <locale> header with -Wsystem-headers on.
This has also been submitted upstream.
Reported by: asomers
MFC r261801:
An ABI incompatibility crept into the libc++ 3.4 import in r261283. It
was caused by upstream libc++ commit r194536, which aimed to make the
headers more standards-compliant, by making std::pair's copy constructor
trivial. Unfortunately, this could cause certain C++ applications using
shared libraries built against the previous version of libc++ to crash.
Fix the ABI incompatibility by making std::pair's copy constructor
non-trivial again.
Please note: Any C++ applications or shared libraries built with libc++
between r261283 and this revision should be recompiled.
Reported by: stefanf
Diffstat (limited to 'contrib/libc++/include/codecvt')
-rw-r--r-- | contrib/libc++/include/codecvt | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/contrib/libc++/include/codecvt b/contrib/libc++/include/codecvt index a6e4308..6eff107 100644 --- a/contrib/libc++/include/codecvt +++ b/contrib/libc++/include/codecvt @@ -29,7 +29,8 @@ template <class Elem, unsigned long Maxcode = 0x10ffff, class codecvt_utf8 : public codecvt<Elem, char, mbstate_t> { - // unspecified + explicit codecvt_utf8(size_t refs = 0); + ~codecvt_utf8(); }; template <class Elem, unsigned long Maxcode = 0x10ffff, @@ -37,7 +38,8 @@ template <class Elem, unsigned long Maxcode = 0x10ffff, class codecvt_utf16 : public codecvt<Elem, char, mbstate_t> { - // unspecified + explicit codecvt_utf16(size_t refs = 0); + ~codecvt_utf16(); }; template <class Elem, unsigned long Maxcode = 0x10ffff, @@ -45,7 +47,8 @@ template <class Elem, unsigned long Maxcode = 0x10ffff, class codecvt_utf8_utf16 : public codecvt<Elem, char, mbstate_t> { - // unspecified + explicit codecvt_utf8_utf16(size_t refs = 0); + ~codecvt_utf8_utf16(); }; } // std @@ -73,7 +76,7 @@ enum codecvt_mode template <class _Elem> class __codecvt_utf8; template <> -class __codecvt_utf8<wchar_t> +class _LIBCPP_TYPE_VIS __codecvt_utf8<wchar_t> : public codecvt<wchar_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -108,7 +111,7 @@ protected: }; template <> -class __codecvt_utf8<char16_t> +class _LIBCPP_TYPE_VIS __codecvt_utf8<char16_t> : public codecvt<char16_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -143,7 +146,7 @@ protected: }; template <> -class __codecvt_utf8<char32_t> +class _LIBCPP_TYPE_VIS __codecvt_utf8<char32_t> : public codecvt<char32_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -179,7 +182,7 @@ protected: template <class _Elem, unsigned long _Maxcode = 0x10ffff, codecvt_mode _Mode = (codecvt_mode)0> -class _LIBCPP_TYPE_VIS codecvt_utf8 +class _LIBCPP_TYPE_VIS_ONLY codecvt_utf8 : public __codecvt_utf8<_Elem> { public: @@ -196,7 +199,7 @@ public: template <class _Elem, bool _LittleEndian> class __codecvt_utf16; template <> -class __codecvt_utf16<wchar_t, false> +class _LIBCPP_TYPE_VIS __codecvt_utf16<wchar_t, false> : public codecvt<wchar_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -231,7 +234,7 @@ protected: }; template <> -class __codecvt_utf16<wchar_t, true> +class _LIBCPP_TYPE_VIS __codecvt_utf16<wchar_t, true> : public codecvt<wchar_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -266,7 +269,7 @@ protected: }; template <> -class __codecvt_utf16<char16_t, false> +class _LIBCPP_TYPE_VIS __codecvt_utf16<char16_t, false> : public codecvt<char16_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -301,7 +304,7 @@ protected: }; template <> -class __codecvt_utf16<char16_t, true> +class _LIBCPP_TYPE_VIS __codecvt_utf16<char16_t, true> : public codecvt<char16_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -336,7 +339,7 @@ protected: }; template <> -class __codecvt_utf16<char32_t, false> +class _LIBCPP_TYPE_VIS __codecvt_utf16<char32_t, false> : public codecvt<char32_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -371,7 +374,7 @@ protected: }; template <> -class __codecvt_utf16<char32_t, true> +class _LIBCPP_TYPE_VIS __codecvt_utf16<char32_t, true> : public codecvt<char32_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -407,7 +410,7 @@ protected: template <class _Elem, unsigned long _Maxcode = 0x10ffff, codecvt_mode _Mode = (codecvt_mode)0> -class _LIBCPP_TYPE_VIS codecvt_utf16 +class _LIBCPP_TYPE_VIS_ONLY codecvt_utf16 : public __codecvt_utf16<_Elem, _Mode & little_endian> { public: @@ -424,7 +427,7 @@ public: template <class _Elem> class __codecvt_utf8_utf16; template <> -class __codecvt_utf8_utf16<wchar_t> +class _LIBCPP_TYPE_VIS __codecvt_utf8_utf16<wchar_t> : public codecvt<wchar_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -459,7 +462,7 @@ protected: }; template <> -class __codecvt_utf8_utf16<char32_t> +class _LIBCPP_TYPE_VIS __codecvt_utf8_utf16<char32_t> : public codecvt<char32_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -494,7 +497,7 @@ protected: }; template <> -class __codecvt_utf8_utf16<char16_t> +class _LIBCPP_TYPE_VIS __codecvt_utf8_utf16<char16_t> : public codecvt<char16_t, char, mbstate_t> { unsigned long _Maxcode_; @@ -530,7 +533,7 @@ protected: template <class _Elem, unsigned long _Maxcode = 0x10ffff, codecvt_mode _Mode = (codecvt_mode)0> -class _LIBCPP_TYPE_VIS codecvt_utf8_utf16 +class _LIBCPP_TYPE_VIS_ONLY codecvt_utf8_utf16 : public __codecvt_utf8_utf16<_Elem> { public: |