Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/serializer/MetainfoSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ float MetainfoSet::AsFloat(const std::string& key) const
return (float)0.;
}

float MetainfoSet::AsDouble(const std::string& key) const
double MetainfoSet::AsDouble(const std::string& key) const
{
std::map<std::string, boost::any>::const_iterator iter = checkKeyExists(key);
const boost::any& a = iter->second;
Expand All @@ -275,7 +275,7 @@ float MetainfoSet::AsDouble(const std::string& key) const
else if(t == typeid(double)) return boost::any_cast<double>(a);
else if(t == typeid(std::string))
{
float v;
double v;
std::stringstream ss;
ss << boost::any_cast<std::string>(a);
ss >> v;
Expand Down
2 changes: 1 addition & 1 deletion src/serializer/MetainfoSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ namespace ser {
*
* @return The value of the metainfo is returned as copy
*/
float AsDouble(const std::string& key) const;
double AsDouble(const std::string& key) const;

/**
* Extracts a value in RealType representation, where RealType is
Expand Down