From: Georg Baum Date: Fri, 15 May 2015 19:01:59 +0000 (+0200) Subject: Instantiate trivial_string::c_str() explicitly X-Git-Tag: 2.2.0alpha1~829 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b147cd0f3a2b69cd4a983d1b35f29fa7502855f3;p=features.git 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. --- 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())