Update of /cvsroot/boost/boost/boost/date_time/gregorian
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9477/boost/date_time/gregorian
Modified Files:
greg_serialize.hpp
Log Message:
Remove unused variables from serialization code to prevent warnings
Index: greg_serialize.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/date_time/gregorian/greg_serialize.hpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- greg_serialize.hpp 21 Jun 2005 03:33:14 -0000 1.8
+++ greg_serialize.hpp 2 Mar 2007 02:50:49 -0000 1.9
@@ -52,7 +52,7 @@
template<class Archive>
void save(Archive & ar,
const ::boost::gregorian::date & d,
- unsigned int version)
+ unsigned int /* version */)
{
std::string ds = to_iso_string(d);
ar & make_nvp("date", ds);
@@ -66,7 +66,7 @@
template<class Archive>
void load(Archive & ar,
::boost::gregorian::date & d,
- unsigned int version)
+ unsigned int /*version*/)
{
std::string ds;
ar & make_nvp("date", ds);
@@ -88,7 +88,7 @@
template<class Archive>
inline void load_construct_data(Archive & ar,
::boost::gregorian::date* dp,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
// retrieve data from archive required to construct new
// invoke inplace constructor to initialize instance of date
@@ -100,14 +100,14 @@
//! Function to save gregorian::date_duration objects using serialization lib
template<class Archive>
void save(Archive & ar, const gregorian::date_duration & dd,
- unsigned int version)
+ unsigned int /*version*/)
{
typename gregorian::date_duration::duration_rep dr = dd.get_rep();
ar & make_nvp("date_duration", dr);
}
//! Function to load gregorian::date_duration objects using serialization lib
template<class Archive>
-void load(Archive & ar, gregorian::date_duration & dd, unsigned int version)
+void load(Archive & ar, gregorian::date_duration & dd, unsigned int
/*version*/)
{
typename gregorian::date_duration::duration_rep dr(0);
ar & make_nvp("date_duration", dr);
@@ -116,7 +116,7 @@
//!override needed b/c no default constructor
template<class Archive>
inline void load_construct_data(Archive & ar, gregorian::date_duration* dd,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
::new(dd) gregorian::date_duration(gregorian::not_a_date_time);
}
@@ -126,14 +126,14 @@
//! helper unction to save date_duration objects using serialization lib
template<class Archive>
void save(Archive & ar, const gregorian::date_duration::duration_rep & dr,
- unsigned int version)
+ unsigned int /*version*/)
{
typename gregorian::date_duration::duration_rep::int_type it =
dr.as_number();
ar & make_nvp("date_duration_duration_rep", it);
}
//! helper function to load date_duration objects using serialization lib
template<class Archive>
-void load(Archive & ar, gregorian::date_duration::duration_rep & dr, unsigned
int version)
+void load(Archive & ar, gregorian::date_duration::duration_rep & dr, unsigned
int /*version*/)
{
typename gregorian::date_duration::duration_rep::int_type it(0);
ar & make_nvp("date_duration_duration_rep", it);
@@ -142,7 +142,7 @@
//!override needed b/c no default constructor
template<class Archive>
inline void load_construct_data(Archive & ar,
gregorian::date_duration::duration_rep* dr,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
::new(dr) gregorian::date_duration::duration_rep(0);
}
@@ -155,7 +155,7 @@
*/
template<class Archive>
void save(Archive & ar, const gregorian::date_period& dp,
- unsigned int version)
+ unsigned int /*version*/)
{
gregorian::date d1 = dp.begin();
gregorian::date d2 = dp.end();
@@ -167,7 +167,7 @@
* the begining date object and the end date object
*/
template<class Archive>
-void load(Archive & ar, gregorian::date_period& dp, unsigned int version)
+void load(Archive & ar, gregorian::date_period& dp, unsigned int /*version*/)
{
gregorian::date d1(gregorian::not_a_date_time);
gregorian::date d2(gregorian::not_a_date_time);
@@ -178,7 +178,7 @@
//!override needed b/c no default constructor
template<class Archive>
inline void load_construct_data(Archive & ar, gregorian::date_period* dp,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
gregorian::date d(gregorian::not_a_date_time);
gregorian::date_duration dd(1);
@@ -190,14 +190,14 @@
//! Function to save gregorian::greg_month objects using serialization lib
template<class Archive>
void save(Archive & ar, const gregorian::greg_month& gm,
- unsigned int version)
+ unsigned int /*version*/)
{
unsigned short us = gm.as_number();
ar & make_nvp("greg_month", us);
}
//! Function to load gregorian::greg_month objects using serialization lib
template<class Archive>
-void load(Archive & ar, gregorian::greg_month& gm, unsigned int version)
+void load(Archive & ar, gregorian::greg_month& gm, unsigned int /*version*/)
{
unsigned short us;
ar & make_nvp("greg_month", us);
@@ -206,7 +206,7 @@
//!override needed b/c no default constructor
template<class Archive>
inline void load_construct_data(Archive & ar, gregorian::greg_month* gm,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
::new(gm) gregorian::greg_month(1);
}
@@ -216,14 +216,14 @@
//! Function to save gregorian::greg_day objects using serialization lib
template<class Archive>
void save(Archive & ar, const gregorian::greg_day& gd,
- unsigned int version)
+ unsigned int /*version*/)
{
unsigned short us = gd.as_number();
ar & make_nvp("greg_day", us);
}
//! Function to load gregorian::greg_day objects using serialization lib
template<class Archive>
-void load(Archive & ar, gregorian::greg_day& gd, unsigned int version)
+void load(Archive & ar, gregorian::greg_day& gd, unsigned int /*version*/)
{
unsigned short us;
ar & make_nvp("greg_day", us);
@@ -232,7 +232,7 @@
//!override needed b/c no default constructor
template<class Archive>
inline void load_construct_data(Archive & ar, gregorian::greg_day* gd,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
::new(gd) gregorian::greg_day(1);
}
@@ -242,14 +242,14 @@
//! Function to save gregorian::greg_weekday objects using serialization lib
template<class Archive>
void save(Archive & ar, const gregorian::greg_weekday& gd,
- unsigned int version)
+ unsigned int /*version*/)
{
unsigned short us = gd.as_number();
ar & make_nvp("greg_weekday", us);
}
//! Function to load gregorian::greg_weekday objects using serialization lib
template<class Archive>
-void load(Archive & ar, gregorian::greg_weekday& gd, unsigned int version)
+void load(Archive & ar, gregorian::greg_weekday& gd, unsigned int /*version*/)
{
unsigned short us;
ar & make_nvp("greg_weekday", us);
@@ -258,7 +258,7 @@
//!override needed b/c no default constructor
template<class Archive>
inline void load_construct_data(Archive & ar, gregorian::greg_weekday* gd,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
::new(gd) gregorian::greg_weekday(1);
}
@@ -273,7 +273,7 @@
*/
template<class Archive>
void save(Archive & ar, const gregorian::partial_date& pd,
- unsigned int version)
+ unsigned int /*version*/)
{
gregorian::greg_day gd(pd.day());
gregorian::greg_month gm(pd.month().as_number());
@@ -285,7 +285,7 @@
* the day (greg_day) and month (greg_month) objects
*/
template<class Archive>
-void load(Archive & ar, gregorian::partial_date& pd, unsigned int version)
+void load(Archive & ar, gregorian::partial_date& pd, unsigned int /*version*/)
{
gregorian::greg_day gd(1);
gregorian::greg_month gm(1);
@@ -296,7 +296,7 @@
//!override needed b/c no default constructor
template<class Archive>
inline void load_construct_data(Archive & ar, gregorian::partial_date* pd,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
gregorian::greg_month gm(1);
gregorian::greg_day gd(1);
@@ -311,7 +311,7 @@
*/
template<class Archive>
void save(Archive & ar, const gregorian::nth_kday_of_month& nkd,
- unsigned int version)
+ unsigned int /*version*/)
{
typename gregorian::nth_kday_of_month::week_num wn(nkd.nth_week());
typename gregorian::nth_kday_of_month::day_of_week_type
d(nkd.day_of_week().as_number());
@@ -325,7 +325,7 @@
* serialization: the week number, the day of the week, and the month
*/
template<class Archive>
-void load(Archive & ar, gregorian::nth_kday_of_month& nkd, unsigned int
version)
+void load(Archive & ar, gregorian::nth_kday_of_month& nkd, unsigned int
/*version*/)
{
typename gregorian::nth_kday_of_month::week_num
wn(gregorian::nth_kday_of_month::first);
typename gregorian::nth_kday_of_month::day_of_week_type d(gregorian::Monday);
@@ -340,7 +340,7 @@
template<class Archive>
inline void load_construct_data(Archive & ar,
gregorian::nth_kday_of_month* nkd,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
// values used are not significant
::new(nkd) gregorian::nth_kday_of_month(gregorian::nth_kday_of_month::first,
@@ -355,7 +355,7 @@
*/
template<class Archive>
void save(Archive & ar, const gregorian::first_kday_of_month& fkd,
- unsigned int version)
+ unsigned int /*version*/)
{
typename gregorian::first_kday_of_month::day_of_week_type
d(fkd.day_of_week().as_number());
typename gregorian::first_kday_of_month::month_type
m(fkd.month().as_number());
@@ -367,7 +367,7 @@
* serialization: the day of the week, and the month
*/
template<class Archive>
-void load(Archive & ar, gregorian::first_kday_of_month& fkd, unsigned int
version)
+void load(Archive & ar, gregorian::first_kday_of_month& fkd, unsigned int
/*version*/)
{
typename gregorian::first_kday_of_month::day_of_week_type
d(gregorian::Monday);
typename gregorian::first_kday_of_month::month_type m(gregorian::Jan);
@@ -380,7 +380,7 @@
template<class Archive>
inline void load_construct_data(Archive & ar,
gregorian::first_kday_of_month* fkd,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
// values used are not significant
::new(fkd) gregorian::first_kday_of_month(gregorian::Monday,gregorian::Jan);
@@ -394,7 +394,7 @@
*/
template<class Archive>
void save(Archive & ar, const gregorian::last_kday_of_month& lkd,
- unsigned int version)
+ unsigned int /*version*/)
{
typename gregorian::last_kday_of_month::day_of_week_type
d(lkd.day_of_week().as_number());
typename gregorian::last_kday_of_month::month_type
m(lkd.month().as_number());
@@ -406,7 +406,7 @@
* serialization: the day of the week, and the month
*/
template<class Archive>
-void load(Archive & ar, gregorian::last_kday_of_month& lkd, unsigned int
version)
+void load(Archive & ar, gregorian::last_kday_of_month& lkd, unsigned int
/*version*/)
{
typename gregorian::last_kday_of_month::day_of_week_type
d(gregorian::Monday);
typename gregorian::last_kday_of_month::month_type m(gregorian::Jan);
@@ -419,7 +419,7 @@
template<class Archive>
inline void load_construct_data(Archive & ar,
gregorian::last_kday_of_month* lkd,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
// values used are not significant
::new(lkd) gregorian::last_kday_of_month(gregorian::Monday,gregorian::Jan);
@@ -430,14 +430,14 @@
//! Function to save first_day_of_the_week_before objects using serialization
lib
template<class Archive>
void save(Archive & ar, const gregorian::first_kday_before& fkdb,
- unsigned int version)
+ unsigned int /*version*/)
{
typename gregorian::first_kday_before::day_of_week_type
d(fkdb.day_of_week().as_number());
ar & make_nvp("first_kday_before_day_of_week", d);
}
//! Function to load first_day_of_the_week_before objects using serialization
lib
template<class Archive>
-void load(Archive & ar, gregorian::first_kday_before& fkdb, unsigned int
version)
+void load(Archive & ar, gregorian::first_kday_before& fkdb, unsigned int
/*version*/)
{
typename gregorian::first_kday_before::day_of_week_type d(gregorian::Monday);
ar & make_nvp("first_kday_before_day_of_week", d);
@@ -448,7 +448,7 @@
template<class Archive>
inline void load_construct_data(Archive & ar,
gregorian::first_kday_before* fkdb,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
// values used are not significant
::new(fkdb) gregorian::first_kday_before(gregorian::Monday);
@@ -459,14 +459,14 @@
//! Function to save first_day_of_the_week_after objects using serialization
lib
template<class Archive>
void save(Archive & ar, const gregorian::first_kday_after& fkda,
- unsigned int version)
+ unsigned int /*version*/)
{
typename gregorian::first_kday_after::day_of_week_type
d(fkda.day_of_week().as_number());
ar & make_nvp("first_kday_after_day_of_week", d);
}
//! Function to load first_day_of_the_week_after objects using serialization
lib
template<class Archive>
-void load(Archive & ar, gregorian::first_kday_after& fkda, unsigned int
version)
+void load(Archive & ar, gregorian::first_kday_after& fkda, unsigned int
/*version*/)
{
typename gregorian::first_kday_after::day_of_week_type d(gregorian::Monday);
ar & make_nvp("first_kday_after_day_of_week", d);
@@ -477,7 +477,7 @@
template<class Archive>
inline void load_construct_data(Archive & ar,
gregorian::first_kday_after* fkda,
- const unsigned int file_version)
+ const unsigned int /*file_version*/)
{
// values used are not significant
::new(fkda) gregorian::first_kday_after(gregorian::Monday);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs