Ticket #7112: date_parsing.2.hpp_patch

File date_parsing.2.hpp_patch, 609 bytes (added by Gaurav Gupta <g.gupta@…>, 10 years ago)

Fix for the reported Bug.

Line 
1diff -Naur a/boost/date_time/date_parsing.hpp b/boost/date_time/date_parsing.hpp
2--- a/boost/date_time/date_parsing.hpp 2012-07-05 16:47:25.000000000 +0530
3+++ b/boost/date_time/date_parsing.hpp 2012-07-10 18:38:25.000000000 +0530
4@@ -148,6 +148,8 @@
5 day = boost::lexical_cast<unsigned short>(*beg);
6 break;
7 }
8+ default:
9+ break;
10 } //switch
11 }
12 return date_type(year, month, day);
13@@ -180,6 +182,7 @@
14 case 0: y = i; break;
15 case 1: m = i; break;
16 case 2: d = i; break;
17+ default: break;
18 }
19 pos++;
20 }