From b147cd0f3a2b69cd4a983d1b35f29fa7502855f3 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Fri, 15 May 2015 21:01:59 +0200 Subject: [PATCH] Instantiate trivial_string::c_str() explicitly This fixes hopefully the compilation of check_trivstring on cygwin and solaris. Previously I did not use the explicit instantiation, because c_str() is used by other explicitly instantiated methiods, but for some reason this does not seem to suffice. --- src/support/trivstring.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/support/trivstring.cpp b/src/support/trivstring.cpp index c780aa7f6d..127a8d30b5 100644 --- a/src/support/trivstring.cpp +++ b/src/support/trivstring.cpp @@ -187,6 +187,8 @@ trivial_string::operator _stdstring() const } +template char const * trivial_string::c_str() const; +template char_type const * trivial_string::c_str() const; template Char const * trivial_string::c_str() const { if (use_sso()) -- 2.39.2