Define format strings for int and double ParseScalar() methods
This commit is contained in:
parent
b8d0b274b1
commit
bdd0afddf5
1 changed files with 10 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
|||
|
||||
namespace yaml {
|
||||
|
||||
#pragma mark Parser
|
||||
|
||||
Parser::Parser(Scene& scene,
|
||||
ParserStack& parsers)
|
||||
: mScene(scene),
|
||||
|
@ -69,4 +71,12 @@ Parser::GetParsers()
|
|||
return mParsers;
|
||||
}
|
||||
|
||||
#pragma mark ParseScalar
|
||||
|
||||
template<>
|
||||
const char* ScalarParserTraits<int>::fmt = "%d";
|
||||
|
||||
template<>
|
||||
const char* ScalarParserTraits<double>::fmt = "%ld";
|
||||
|
||||
} /* namespace yaml */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue