fix requested items

This commit is contained in:
Dan Dees 2018-09-12 09:25:32 +07:00
parent a4512d5de7
commit dc215eddf6
2 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ class YAML_CPP_API node_data {
shared_memory_holder pMemory);
public:
static std::string& empty_scalar();
static const std::string& empty_scalar();
private:
void compute_seq_size() const;

View File

@ -13,9 +13,9 @@
namespace YAML {
namespace detail {
std::string& node_data::empty_scalar(){
static std::string _es;
return _es ;
const std::string& node_data::empty_scalar() {
static const std::string svalue;
return svalue ;
}
node_data::node_data()