summaryrefslogtreecommitdiff
path: root/boost/system/error_code.hpp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-09-13 11:08:07 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-09-13 11:09:00 +0900
commitb5c87084afaef42b2d058f68091be31988a6a874 (patch)
treeadef9a65870a41181687e11d57fdf98e7629de3c /boost/system/error_code.hpp
parent34bd32e225e2a8a94104489b31c42e5801cc1f4a (diff)
downloadboost-b5c87084afaef42b2d058f68091be31988a6a874.tar.gz
boost-b5c87084afaef42b2d058f68091be31988a6a874.tar.bz2
boost-b5c87084afaef42b2d058f68091be31988a6a874.zip
Imported Upstream version 1.64.0upstream/1.64.0
Change-Id: Id9212edd016dd55f21172c427aa7894d1d24148b Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/system/error_code.hpp')
-rw-r--r--boost/system/error_code.hpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/boost/system/error_code.hpp b/boost/system/error_code.hpp
index d419f3701b..b6ff6e4bad 100644
--- a/boost/system/error_code.hpp
+++ b/boost/system/error_code.hpp
@@ -8,8 +8,8 @@
// See library home page at http://www.boost.org/libs/system
-#ifndef BOOST_ERROR_CODE_HPP
-#define BOOST_ERROR_CODE_HPP
+#ifndef BOOST_SYSTEM_ERROR_CODE_HPP
+#define BOOST_SYSTEM_ERROR_CODE_HPP
#include <boost/system/config.hpp>
#include <boost/cstdint.hpp>
@@ -39,8 +39,9 @@ namespace boost
namespace system
{
- class error_code;
- class error_condition;
+ class error_code; // values defined by the operating system
+ class error_condition; // portable generic values defined below, but ultimately
+ // based on the POSIX standard
// "Concept" helpers ---------------------------------------------------//
@@ -218,9 +219,9 @@ namespace boost
inline const error_category & get_system_category() { return system_category(); }
inline const error_category & get_generic_category() { return generic_category(); }
inline const error_category & get_posix_category() { return generic_category(); }
- static const error_category & posix_category = generic_category();
- static const error_category & errno_ecat = generic_category();
- static const error_category & native_ecat = system_category();
+ static const error_category & posix_category BOOST_ATTRIBUTE_UNUSED = generic_category();
+ static const error_category & errno_ecat BOOST_ATTRIBUTE_UNUSED = generic_category();
+ static const error_category & native_ecat BOOST_ATTRIBUTE_UNUSED = system_category();
# endif
// class error_condition -----------------------------------------------//
@@ -515,6 +516,6 @@ namespace boost
# include <boost/system/detail/error_code.ipp>
# endif
-#endif // BOOST_ERROR_CODE_HPP
+#endif // BOOST_SYSTEM_ERROR_CODE_HPP