mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Updated to remove most of the warnings in Visual Studio. (There's still the one about all control paths returning a value left.) Fixed one warning (when an istream converts to void * to then convert to bool), and disabled three.
This commit is contained in:
@@ -23,7 +23,8 @@ namespace YAML
|
||||
inline bool Convert(const std::string& input, T& output, typename enable_if<is_numeric<T> >::type * = 0) {
|
||||
std::stringstream stream(input);
|
||||
stream.unsetf(std::ios::dec);
|
||||
return stream >> output;
|
||||
stream >> output;
|
||||
return !!stream;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -20,7 +20,7 @@ namespace YAML
|
||||
class Content;
|
||||
class Scanner;
|
||||
class Emitter;
|
||||
class ParserState;
|
||||
struct ParserState;
|
||||
|
||||
enum CONTENT_TYPE { CT_NONE, CT_SCALAR, CT_SEQUENCE, CT_MAP };
|
||||
|
||||
|
@@ -52,9 +52,10 @@ namespace YAML
|
||||
int operator,(flag, flag);
|
||||
|
||||
template<typename T>
|
||||
void operator,(flag, T const&);
|
||||
char operator,(flag, T const&);
|
||||
|
||||
char operator,(int, flag);
|
||||
int operator,(char, flag);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
namespace YAML
|
||||
{
|
||||
class Scanner;
|
||||
class ParserState;
|
||||
struct ParserState;
|
||||
struct Token;
|
||||
|
||||
class Parser: private noncopyable
|
||||
|
Reference in New Issue
Block a user