|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76809 - trunk/libs/conversion/test
From: antoshkka_at_[hidden]
Date: 2012-01-31 11:05:23
Author: apolukhin
Date: 2012-01-31 11:05:22 EST (Tue, 31 Jan 2012)
New Revision: 76809
URL: http://svn.boost.org/trac/boost/changeset/76809
Log:
New test case from ticket #5793
Text files modified:
trunk/libs/conversion/test/lexical_cast_typedefed_wchar_test.cpp | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
Modified: trunk/libs/conversion/test/lexical_cast_typedefed_wchar_test.cpp
==============================================================================
--- trunk/libs/conversion/test/lexical_cast_typedefed_wchar_test.cpp (original)
+++ trunk/libs/conversion/test/lexical_cast_typedefed_wchar_test.cpp 2012-01-31 11:05:22 EST (Tue, 31 Jan 2012)
@@ -13,12 +13,26 @@
#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);
+}
+
+
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;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk