| 1234567891011121314151617181920212223242526272829303132333435363738 |
- /**
- * jsonPrimitive.cpp for jsonstroller
- *
- * Author: isundil <isundill@gmail.com>
- **/
- #include "jsonPrimitive.hh"
- AJSonPrimitive::~AJSonPrimitive()
- {}
- template<> JSonPrimitive<double>::~JSonPrimitive() {}
- template<> JSonPrimitive<bool>::~JSonPrimitive() {}
- template<> JSonPrimitive<int>::~JSonPrimitive() {}
- template<> JSonPrimitive<long long>::~JSonPrimitive() {}
- template<> JSonPrimitive<std::string>::~JSonPrimitive() {}
- template<> std::string JSonPrimitive<std::string>::toString() const
- { return value; }
- template<> std::string JSonPrimitive<double>::toString() const
- {
- return std::to_string(value);
- }
- template<> std::string JSonPrimitive<long long>::toString() const
- {
- return std::to_string(value);
- }
- template<> std::string JSonPrimitive<int>::toString() const
- {
- return std::to_string(value);
- }
- template<> std::string JSonPrimitive<bool>::toString() const
- { return value ? "true" : "false"; }
|