From 9ca851d01f22e8a3e6572abc47f05bf4c325405b Mon Sep 17 00:00:00 2001 From: John Maddock Date: Mon, 16 May 2005 09:57:26 +0000 Subject: [PATCH] Fix function calling conventions (Borland C++ fix). [SVN r28949] --- include/boost/regex/v4/regex_traits_defaults.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/boost/regex/v4/regex_traits_defaults.hpp b/include/boost/regex/v4/regex_traits_defaults.hpp index 2a516c8e..4d41fa24 100644 --- a/include/boost/regex/v4/regex_traits_defaults.hpp +++ b/include/boost/regex/v4/regex_traits_defaults.hpp @@ -252,15 +252,15 @@ BOOST_REGEX_DECL unsigned short BOOST_REGEX_CALL do_global_upper(unsigned short // otherwise the "local template instantiation" compiler option can pick // the wrong instantiation when linking: // -template<> inline char global_lower(char c){ return do_global_lower(c); } -template<> inline char global_upper(char c){ return do_global_upper(c); } +template<> inline char BOOST_REGEX_CALL global_lower(char c){ return do_global_lower(c); } +template<> inline char BOOST_REGEX_CALL global_upper(char c){ return do_global_upper(c); } #ifndef BOOST_NO_WREGEX -template<> inline wchar_t global_lower(wchar_t c){ return do_global_lower(c); } -template<> inline wchar_t global_upper(wchar_t c){ return do_global_upper(c); } +template<> inline wchar_t BOOST_REGEX_CALL global_lower(wchar_t c){ return do_global_lower(c); } +template<> inline wchar_t BOOST_REGEX_CALL global_upper(wchar_t c){ return do_global_upper(c); } #endif #ifdef BOOST_REGEX_HAS_OTHER_WCHAR_T -template<> inline unsigned short global_lower(unsigned short c){ return do_global_lower(c); } -template<> inline unsigned short global_upper(unsigned short c){ return do_global_upper(c); } +template<> inline unsigned short BOOST_REGEX_CALL global_lower(unsigned short c){ return do_global_lower(c); } +template<> inline unsigned short BOOST_REGEX_CALL global_upper(unsigned short c){ return do_global_upper(c); } #endif template