|
|
@ -207,11 +207,12 @@ namespace clix { |
|
|
|
typename detail::StringTypeSelector<encoding>::Type, |
|
|
|
typename detail::StringTypeSelector<encoding>::Type, |
|
|
|
System::String ^ |
|
|
|
System::String ^ |
|
|
|
>::Type marshalString(SourceType string) { |
|
|
|
>::Type marshalString(SourceType string) { |
|
|
|
|
|
|
|
constexpr detail::MarshalingDirection direction = |
|
|
|
|
|
|
|
detail::IfManaged<SourceType>::Result ? detail::CxxFromNet : detail::NetFromCxx; |
|
|
|
|
|
|
|
using StringMarshaler = detail::StringMarshaler<direction>; |
|
|
|
|
|
|
|
|
|
|
|
// Pass on the call to our nifty template routines
|
|
|
|
// Pass on the call to our nifty template routines
|
|
|
|
return detail::StringMarshaler< |
|
|
|
return StringMarshaler::template marshal<encoding, SourceType>(string); |
|
|
|
detail::IfManaged<SourceType>::Result ? detail::CxxFromNet : detail::NetFromCxx |
|
|
|
|
|
|
|
>::marshal<encoding, SourceType>(string); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|