json/tree: explain lack of scalar type operators

This commit is contained in:
Danny Robson 2015-08-28 21:06:29 +10:00
parent a28ea87d58
commit bedd74747c

View File

@ -67,6 +67,9 @@ namespace json { namespace tree {
virtual boolean& as_boolean (void);
virtual null& as_null (void);
// we don't provide operators for conversion due to ambiguities
// introduced when using indexing operators with pointer
// arguments.
virtual bool as_bool (void) const;
virtual float as_float (void) const;
virtual double as_double (void) const;