[EMAIL PROTECTED] wrote:
Author: baum
Date: Sun Sep  3 09:02:38 2006
New Revision: 14871

URL: http://www.lyx.org/trac/changeset/14871
Log:
Fix clipboard/selection encoding

        * src/frontends/qt[34]/qt_helpers.[Ch]
        (toqstr): add variant for docstring
        (qstring_to_ucs4): Use docstring and port from qt4 to qt3

        * Many other files: Many std::string -> lyx::docstring conversions

        * src/support/lstrings.[Ch]
        (subst): Add variant for docstring and char_type

Georg,

Your template solution for subst() doesn't please MSVC:

Compiling...
lstrings.C
C:\Program Files\Microsoft Visual Studio 8\VC\include\xstring(2044) : error C2621: member 'std::basic_string<_Elem,_Traits,_Ax>::_Bxty::_Buf' of union 'std::basic_string<_Elem,_Traits,_Ax>::_Bxty' has copy constructor
        with
        [
            _Elem=std::string,
            _Traits=std::char_traits<std::string>,
            _Ax=std::allocator<std::string>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\include\xstring(2046) : see reference to class template instantiation 'std::basic_string<_Elem,_Traits,_Ax>::_Bxty' being compiled
        with
        [
            _Elem=std::string,
            _Traits=std::char_traits<std::string>,
            _Ax=std::allocator<std::string>
        ]
..\..\..\..\src\support\lstrings.C(410) : see reference to class template instantiation 'std::basic_string<_Elem,_Traits,_Ax>' being compiled
        with
        [
            _Elem=std::string,
            _Traits=std::char_traits<std::string>,
            _Ax=std::allocator<std::string>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\include\xstring(2044) : error C2621: member 'std::basic_string<_Elem,_Traits,_Ax>::_Bxty::_Buf' of union 'std::basic_string<_Elem,_Traits,_Ax>::_Bxty' has copy constructor
        with
        [
            _Elem=lyx::docstring,
            _Traits=std::char_traits<lyx::docstring>,
            _Ax=std::allocator<lyx::docstring>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\include\xstring(2046) : see reference to class template instantiation 'std::basic_string<_Elem,_Traits,_Ax>::_Bxty' being compiled
        with
        [
            _Elem=lyx::docstring,
            _Traits=std::char_traits<lyx::docstring>,
            _Ax=std::allocator<lyx::docstring>
        ]
..\..\..\..\src\support\lstrings.C(417) : see reference to class template instantiation 'std::basic_string<_Elem,_Traits,_Ax>' being compiled
        with
        [
            _Elem=lyx::docstring,
            _Traits=std::char_traits<lyx::docstring>,
            _Ax=std::allocator<lyx::docstring>
        ]

Reply via email to