mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
msvc: Move implementation of numpunct<> functions to cpp file
These functions use lyx::from_ascii which means they need to include docstring.h, but that results in a circular include.
This commit is contained in:
parent
42e5353f8a
commit
990446c0e1
@ -28,7 +28,24 @@ using lyx::ucs4_codeset;
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
|
||||
std::locale::id numpunct<lyx::char_type>::id;
|
||||
#endif
|
||||
|
||||
namespace std {
|
||||
// Implementation of numpunct<lyx::char_type> defined in numpunct_lyx_char_type.h
|
||||
typedef basic_string<lyx::char_type> string_type;
|
||||
|
||||
string_type numpunct<lyx::char_type>::truename() const
|
||||
{
|
||||
return lyx::from_ascii(numpunct<char>::truename());
|
||||
}
|
||||
|
||||
string_type numpunct<lyx::char_type>::falsename() const
|
||||
{
|
||||
return lyx::from_ascii(numpunct<char>::falsename());
|
||||
}
|
||||
|
||||
} // namespace std
|
||||
|
||||
#endif // _MSC_VER >= 1600
|
||||
|
||||
|
||||
namespace {
|
||||
|
@ -41,11 +41,9 @@ namespace std
|
||||
string grouping() const
|
||||
{ return numpunct<char>::grouping(); }
|
||||
|
||||
string_type truename() const
|
||||
{ return lyx::from_ascii(numpunct<char>::truename()); }
|
||||
|
||||
string_type falsename() const
|
||||
{ return lyx::from_ascii(numpunct<char>::falsename()); }
|
||||
// Implementation can be found in docstream.cpp
|
||||
string_type truename() const;
|
||||
string_type falsename() const;
|
||||
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user