Skip to content

Commit

Permalink
remove dllimport from utf8.hpp to fix MSVC build
Browse files Browse the repository at this point in the history
  • Loading branch information
bebuch authored and klemens-morgenstern committed Oct 24, 2024
1 parent e8b59f6 commit 26906fe
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions include/boost/process/v2/detail/utf8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ BOOST_PROCESS_V2_DECL std::size_t convert_to_wide(const char * in, std::size_

template<typename CharOut, typename Traits = std::char_traits<CharOut>,
typename Allocator = std::allocator<CharOut>, typename CharIn,
typename = typename std::enable_if<std::is_same<CharOut, CharIn>::value>::type>
BOOST_PROCESS_V2_DECL
typename = typename std::enable_if<std::is_same<CharOut, CharIn>::value>::type>
std::basic_string<CharOut, Traits, Allocator> conv_string(
const CharIn * data, std::size_t size,
const Allocator allocator = Allocator{})
Expand All @@ -35,8 +34,7 @@ std::basic_string<CharOut, Traits, Allocator> conv_string(

template<typename CharOut, typename Traits = std::char_traits<CharOut>,
typename Allocator = std::allocator<CharOut>,
typename = typename std::enable_if<std::is_same<CharOut, char>::value>::type>
BOOST_PROCESS_V2_DECL
typename = typename std::enable_if<std::is_same<CharOut, char>::value>::type>
std::basic_string<CharOut, Traits, Allocator> conv_string(
const wchar_t * data, std::size_t size,
const Allocator allocator = Allocator{})
Expand All @@ -59,8 +57,7 @@ std::basic_string<CharOut, Traits, Allocator> conv_string(

template<typename CharOut, typename Traits = std::char_traits<CharOut>,
typename Allocator = std::allocator<CharOut>,
typename = typename std::enable_if<std::is_same<CharOut, wchar_t>::value>::type>
BOOST_PROCESS_V2_DECL
typename = typename std::enable_if<std::is_same<CharOut, wchar_t>::value>::type>
std::basic_string<CharOut, Traits, Allocator> conv_string(
const char * data, std::size_t size,
const Allocator allocator = Allocator{})
Expand Down

0 comments on commit 26906fe

Please sign in to comment.