summaryrefslogtreecommitdiff
path: root/libs/conversion/test/lexical_cast_typedefed_wchar_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/conversion/test/lexical_cast_typedefed_wchar_test.cpp')
-rwxr-xr-xlibs/conversion/test/lexical_cast_typedefed_wchar_test.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/conversion/test/lexical_cast_typedefed_wchar_test.cpp b/libs/conversion/test/lexical_cast_typedefed_wchar_test.cpp
index 752c3e5f3e..2dc00982e6 100755
--- a/libs/conversion/test/lexical_cast_typedefed_wchar_test.cpp
+++ b/libs/conversion/test/lexical_cast_typedefed_wchar_test.cpp
@@ -13,12 +13,27 @@
#include <boost/static_assert.hpp>
#include <boost/lexical_cast.hpp>
+#include <boost/date_time/gregorian/gregorian.hpp>
+#include <boost/date_time/posix_time/posix_time.hpp>
+
+void parseDate()
+{
+ std::locale locale;
+ boost::date_time::format_date_parser<boost::gregorian::date, wchar_t> parser(L"", locale);
+ boost::date_time::special_values_parser<boost::gregorian::date, wchar_t> svp;
+
+ boost::gregorian::date date = parser.parse_date(L"", L"", svp);
+ (void)date;
+}
+
+
int main()
{
#ifdef BOOST_MSVC
BOOST_STATIC_ASSERT((boost::is_same<wchar_t, unsigned short>::value));
#endif
+ parseDate();
return ::boost::lexical_cast<int>(L"1000") == 1000;
}