]> git.lyx.org Git - features.git/commitdiff
Instantiate trivial_string::c_str() explicitly
authorGeorg Baum <baum@lyx.org>
Fri, 15 May 2015 19:01:59 +0000 (21:01 +0200)
committerGeorg Baum <baum@lyx.org>
Fri, 15 May 2015 19:01:59 +0000 (21:01 +0200)
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

index c780aa7f6d4eab9037fee46c7b5c41e0e17b8a82..127a8d30b5d71cda3e2295dba6895469c3854607 100644 (file)
@@ -187,6 +187,8 @@ trivial_string<Char>::operator _stdstring() const
 }
 
 
+template char const * trivial_string<char>::c_str() const;
+template char_type const * trivial_string<char_type>::c_str() const;
 template<typename Char> Char const * trivial_string<Char>::c_str() const
 {
        if (use_sso())