diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-11 13:18:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-11 13:18:12 +0200 |
commit | 8092bd58a9159f0e3a3a938594bb9c4915e74921 (patch) | |
tree | ea1eee84a75392881defef1cafed96b4d95dd2cf | |
parent | ebe3b33e255a0b73554b30ea146e2d2e2310b688 (diff) |
Work around duplicate overloading issue
-rw-r--r-- | odb/mssql/traits.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/mssql/traits.hxx b/odb/mssql/traits.hxx index 6081a44..1aaa8b8 100644 --- a/odb/mssql/traits.hxx +++ b/odb/mssql/traits.hxx @@ -952,12 +952,17 @@ namespace odb b[i] = static_cast<ucs2_char> (s[i]); } + // Even though this is not used when ucs2_char == wchar_t, the + // compiler will still compile the signatures and complain. + // +#ifndef _WIN32 static void assign (wchar_t* s, const ucs2_char* b, std::size_t n) { for (std::size_t i (0); i < n; ++i) s[i] = static_cast<wchar_t> (b[i]); } +#endif }; template <> |