Opened 19 years ago

Closed 17 years ago

#168 closed Support Requests (Wont Fix)

Gregorian date support

Reported by: ysv_ Owned by: az_sw_dude
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

Please add
date operator+(int) const
date operator-(int) const
as synonyms to
date operator+(date_duration) const
date operator-(date_duration) const

Thanks

Change History (2)

comment:1 by az_sw_dude, 17 years ago

Logged In: YES 
user_id=579686

Sorry for the slow response.

After some thought, this feature will not be added. It will
likely cause ambiguity issues, but mainly it will cause code
understanding issues. Note that there is a shorter/cleaner
alias for date_duration called 'days'.  So the following
will work

date d(...);
date d1 = d + days(3);

I think this is much clearer than

date d1 = d + 3; //what is 3 days? weeks?

Jeff

comment:2 by az_sw_dude, 17 years ago

Status: assignedclosed
Note: See TracTickets for help on using tickets.