2
0
mirror of https://github.com/boostorg/mpi.git synced 2026-02-26 04:42:23 +00:00

Fixed const bug in save_override.

A few const were missing in save_override variants. As a result the most generl function was selected instead of the most specific versions.
Only trigger in BOOST_MPI_HOMOGENEOUS mode.
This commit is contained in:
Alain Miniussi
2015-04-17 14:23:07 +02:00
parent cab4a79963
commit bc13577187

View File

@@ -113,20 +113,20 @@ public:
}
// input archives need to ignore the optional information
void save_override(const archive::class_id_optional_type & /*t*/, int){}
void save_override(archive::class_id_optional_type const& /*t*/, int){}
// explicitly convert to char * to avoid compile ambiguities
void save_override(const archive::class_name_type & t, int){
void save_override(archive::class_name_type const& t, int){
const std::string s(t);
* this->This() << s;
}
void save_override(archive::class_id_type & t, int version){
void save_override(archive::class_id_type const& t, int version){
const boost::int_least16_t x = t;
* this->This() << x;
}
void save_override(archive::version_type & t, int version){
void save_override(archive::version_type const& t, int version){
const boost::int_least8_t x = t;
* this->This() << x;
}