From 8092bd58a9159f0e3a3a938594bb9c4915e74921 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Feb 2013 13:18:12 +0200 Subject: Work around duplicate overloading issue --- odb/mssql/traits.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'odb') 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 (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 (b[i]); } +#endif }; template <> -- cgit v1.1