mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
- VS2012: build/tests
- JSON: style and exceptions catch by ref fix - NumberParser: case-insensitive hex parsing - Dynamic::Var: const std::string& cast operator specialization (coaxing std::string ctor) - LocalDateTime: strftime fix (buffer too small for full tz string, use %Z instead of %z - makes no difference on windows but is more portable) - small buildwin.cmd vsvars32.bat call fix
This commit is contained in:
@@ -69,6 +69,15 @@ Var::~Var()
|
||||
}
|
||||
|
||||
|
||||
Var::operator const std::string & ()
|
||||
{
|
||||
if (typeid(std::string) != _pHolder->type())
|
||||
*this = this->convert<std::string>();
|
||||
|
||||
return extract<std::string>();
|
||||
}
|
||||
|
||||
|
||||
Var& Var::operator = (const Var& other)
|
||||
{
|
||||
Var tmp(other);
|
||||
|
||||
Reference in New Issue
Block a user