From a9e9f426cc8e8c2b77be8afabecead945dc3c299 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Fri, 21 Sep 2007 11:45:23 +0000 Subject: [PATCH] Some compilers require all of the make_error_* functions be template specializations. See prior log message. [SVN r39438] --- include/boost/system/error_code.hpp | 6 +++--- test/error_code_user_test.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 314778f..3ca5426 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -496,7 +496,7 @@ namespace boost template<> struct is_error_code_enum { 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 ); } # elif defined(linux) || defined(__linux) || defined(__linux__) @@ -563,7 +563,7 @@ namespace boost template<> struct is_error_code_enum { 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 ); } # endif @@ -647,7 +647,7 @@ namespace boost template<> struct is_error_code_enum { 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 ); } #else diff --git a/test/error_code_user_test.cpp b/test/error_code_user_test.cpp index 9cbf046..58ddcae 100644 --- a/test/error_code_user_test.cpp +++ b/test/error_code_user_test.cpp @@ -88,7 +88,7 @@ namespace boost template<> struct is_error_code_enum { 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); } } @@ -244,7 +244,7 @@ namespace lib4 // const boost::system::error_category & user_error_category // = 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); // }