Replace boost::lexical_cast with std::to_string

This commit is contained in:
Jørgen Kvalsvik
2016-04-27 08:50:55 +02:00
parent eb1182da27
commit e7bdb796da

View File

@@ -23,8 +23,6 @@
#include <string>
#include <vector>
#include <boost/lexical_cast.hpp>
#include <opm/parser/eclipse/Deck/DeckKeyword.hpp>
#include <opm/parser/eclipse/EclipseState/Grid/Box.hpp>
#include <opm/parser/eclipse/EclipseState/Grid/GridProperty.hpp>
@@ -384,9 +382,9 @@ namespace Opm {
const auto& deckItem = deckKeyword.getRecord(0).getItem(0);
if (deckItem.size() > m_data.size())
throw std::invalid_argument("Size mismatch when setting data for:" + getKeywordName() +
" keyword size: " + boost::lexical_cast<std::string>(deckItem.size())
+ " input size: " + boost::lexical_cast<std::string>(m_data.size()));
throw std::invalid_argument("Size mismatch when setting data for:" + getKeywordName()
+ " keyword size: " + std::to_string( deckItem.size() )
+ " input size: " + std::to_string( m_data.size()) );
return deckItem;
}