summaryrefslogtreecommitdiff
path: root/boost/date_time/date_parsing.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/date_time/date_parsing.hpp')
-rw-r--r--boost/date_time/date_parsing.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/date_time/date_parsing.hpp b/boost/date_time/date_parsing.hpp
index aa8e8e0836..33c5366027 100644
--- a/boost/date_time/date_parsing.hpp
+++ b/boost/date_time/date_parsing.hpp
@@ -6,7 +6,7 @@
* Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
* Author: Jeff Garland, Bart Garst
- * $Date: 2009-06-04 01:24:49 -0700 (Thu, 04 Jun 2009) $
+ * $Date$
*/
#include <string>
@@ -113,7 +113,6 @@ namespace date_time {
spec_str = "mdy";
}
- typedef typename date_type::year_type year_type;
typedef typename date_type::month_type month_type;
unsigned pos = 0;
unsigned short year(0), month(0), day(0);
@@ -148,6 +147,7 @@ namespace date_time {
day = boost::lexical_cast<unsigned short>(*beg);
break;
}
+ default: break;
} //switch
}
return date_type(year, month, day);
@@ -159,7 +159,6 @@ namespace date_time {
parse_undelimited_date(const std::string& s) {
int offsets[] = {4,2,2};
int pos = 0;
- typedef typename date_type::year_type year_type;
//typename date_type::ymd_type ymd((year_type::min)(),1,1);
unsigned short y = 0, m = 0, d = 0;
@@ -180,6 +179,7 @@ namespace date_time {
case 0: y = i; break;
case 1: m = i; break;
case 2: d = i; break;
+ default: break;
}
pos++;
}