summaryrefslogtreecommitdiffstats
path: root/libcxx/include/ios
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-12-02 19:36:40 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-12-02 19:36:40 +0000
commit75689c1018ffcacb3d4771297f439822882313c6 (patch)
tree23800a8cca037e23b8a49f0fa0778c6c983283a2 /libcxx/include/ios
parent70f7213d2cf81b2dba91ec939e44f07c975e684e (diff)
downloadbcm5719-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/ios12
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();
OpenPOWER on IntegriCloud