#include <cstdlib>
#include <cerrno>
#include <boost/lexical_cast.hpp>
#include <boost/logic/tribool.hpp>
Go to the source code of this file.
◆ STRTOD
#define STRTOD |
( |
|
x, |
|
|
|
y |
|
) |
| strtod((x), (y)) |
◆ ATOF
#define ATOF |
( |
|
x | ) |
atof(x) |
◆ OPTIMIZED_LEXICAL_CAST
#define OPTIMIZED_LEXICAL_CAST |
( |
|
toType | ) |
|
Value: template<>
inline toType
lexical_cast(
const std::string& str) { \
bool success; \
toType
value = lexical_cast<toType>(str, success); \
if (!success) \
throw bad_lexical_cast(); \
}
Definition at line 58 of file optimized_lexical_cast.hpp.