Opened 20 years ago

Closed 20 years ago

#126 closed Bugs (Fixed)

boost 1.29.0 date erroneous behaviour

Reported by: el_simeon Owned by: nobody
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

this line:

void f()
{
	using namespace std;
	using namespace boost::gregorian;

	date d (2002, 02, 29);
	cout << to_simple_string (d) << endl;
}

will ouput

2002-Mar-01

is this the intended behaviour?

Change History (3)

comment:1 by az_sw_dude, 20 years ago

Logged In: YES 
user_id=579686

I agree that this is a hole in the current error checking.  
This should throw bad_day_of_month.

Jeff

comment:2 by az_sw_dude, 20 years ago

Logged In: YES 
user_id=579686

I agree that this is a hole in the current error checking.  
This should throw bad_day_of_month.

Jeff

comment:3 by az_sw_dude, 20 years ago

Status: assignedclosed
Logged In: YES 
user_id=579686

Problem has been fixed in CVS.  The attempt to construct 
the date will no cause a bad_day_of_month exception.
Note: See TracTickets for help on using tickets.