#include <algorithm>
#include <fstream>
-#include <locale>
using std::string;
using std::vector;
LanguagePair, bool>
{
public:
-#if 1//defined(__GNUC__) && (!defined(USE_WCHAR_T) || __GNUC__ < 4)
bool operator()(LanguagePair const & lhs,
LanguagePair const & rhs) const {
return lhs.first < rhs.first;
}
-#else
-// this is supposed to fix bug 2738, but it is not stable yet
-// see http://bugzilla.lyx.org/show_bug.cgi?id=2738
- Sorter() : loc_("") {};
- bool operator()(LanguagePair const & lhs,
- LanguagePair const & rhs) const {
- return loc_(lhs.first, rhs.first);
- }
-private:
- std::locale loc_;
-#endif
};
} // namespace anon