Some compilers require all of the make_error_* functions be template specializations. See prior log message.

[SVN r39438]
This commit is contained in:
Beman Dawes
2007-09-21 11:45:23 +00:00
parent 640383329f
commit a9e9f426cc
2 changed files with 5 additions and 5 deletions

View File

@ -496,7 +496,7 @@ namespace boost
template<> struct is_error_code_enum<cygwin::cygwin_errno> template<> struct is_error_code_enum<cygwin::cygwin_errno>
{ static const bool value = true; }; { static const bool value = true; };
inline error_code make_error_code(cygwin::cygwin_errno e) template<> inline error_code make_error_code(cygwin::cygwin_errno e)
{ return error_code( e, system_category ); } { return error_code( e, system_category ); }
# elif defined(linux) || defined(__linux) || defined(__linux__) # elif defined(linux) || defined(__linux) || defined(__linux__)
@ -563,7 +563,7 @@ namespace boost
template<> struct is_error_code_enum<Linux::linux_error> template<> struct is_error_code_enum<Linux::linux_error>
{ static const bool value = true; }; { static const bool value = true; };
inline error_code make_error_code(Linux::linux_error e) template<> inline error_code make_error_code(Linux::linux_error e)
{ return error_code( e, system_category ); } { return error_code( e, system_category ); }
# endif # endif
@ -647,7 +647,7 @@ namespace boost
template<> struct is_error_code_enum<windows::windows_error> template<> struct is_error_code_enum<windows::windows_error>
{ static const bool value = true; }; { static const bool value = true; };
inline error_code make_error_code(windows::windows_error e) template<> inline error_code make_error_code(windows::windows_error e)
{ return error_code( e, system_category ); } { return error_code( e, system_category ); }
#else #else

View File

@ -88,7 +88,7 @@ namespace boost
template<> struct is_error_code_enum<boost::lib3::error> template<> struct is_error_code_enum<boost::lib3::error>
{ static const bool value = true; }; { static const bool value = true; };
inline error_code make_error_code(boost::lib3::error e) template<> inline error_code make_error_code(boost::lib3::error e)
{ return error_code(e,boost::lib3::lib3_error_category); } { return error_code(e,boost::lib3::lib3_error_category); }
} }
@ -244,7 +244,7 @@ namespace lib4
// const boost::system::error_category & user_error_category // const boost::system::error_category & user_error_category
// = user_error_category_const; // = user_error_category_const;
// //
// inline boost::system::error_code make_error_code(user_err e) // template<> inline boost::system::error_code make_error_code(user_err e)
// { // {
// return boost::system::error_code(e, user_error_category); // return boost::system::error_code(e, user_error_category);
// } // }