|
Boost Users : |
Subject: [Boost-users] plus<boost::gregorian::date> - how to?
From: qplace (admin_at_[hidden])
Date: 2011-03-18 11:08:30
I need to be able to either add or substruct boost::gregorian::days from
boost::gregorian::date.
As far as I understand I have to define
plus<boost::gregorian::date>
and minius<boost::gregorian::date>
and provide function operators for them.
My question is:
Function operator required in plus and minus template has a form of
T operator()(const T& x, const T& y)
, but I need to use not only gregorian::date, but gregorian::days as well.
Any advise is greatly appreciated.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net