diff options
author | Howard Hinnant <hhinnant@apple.com> | 2011-12-02 19:36:40 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2011-12-02 19:36:40 +0000 |
commit | 75689c1018ffcacb3d4771297f439822882313c6 (patch) | |
tree | 23800a8cca037e23b8a49f0fa0778c6c983283a2 /libcxx/include/ios | |
parent | 70f7213d2cf81b2dba91ec939e44f07c975e684e (diff) | |
download | bcm5719-llvm-75689c1018ffcacb3d4771297f439822882313c6.tar.gz bcm5719-llvm-75689c1018ffcacb3d4771297f439822882313c6.zip |
Fix http://llvm.org/bugs/show_bug.cgi?id=11428. Fix provided by Alberto Ganesh Barbati
llvm-svn: 145698
Diffstat (limited to 'libcxx/include/ios')
-rw-r--r-- | libcxx/include/ios | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libcxx/include/ios b/libcxx/include/ios index 7ea63a31ca7..3aa066bfe63 100644 --- a/libcxx/include/ios +++ b/libcxx/include/ios @@ -373,21 +373,19 @@ private: }; //enum class io_errc -struct _LIBCPP_VISIBLE io_errc +_LIBCPP_DECLARE_STRONG_ENUM(io_errc) { -enum _ { stream = 1 }; - _ __v_; - - _LIBCPP_ALWAYS_INLINE io_errc(_ __v) : __v_(__v) {} - _LIBCPP_ALWAYS_INLINE operator int() const {return __v_;} -}; +_LIBCPP_DECLARE_STRONG_ENUM_EPILOG(io_errc) template <> struct _LIBCPP_VISIBLE is_error_code_enum<io_errc> : public true_type { }; + +#ifdef _LIBCPP_HAS_NO_STRONG_ENUMS template <> struct _LIBCPP_VISIBLE is_error_code_enum<io_errc::_> : public true_type { }; +#endif _LIBCPP_VISIBLE const error_category& iostream_category(); |