vcpkg/ports/realsense2/fix-tools-compile-on-vs2019.patch
NancyLi1013 8fb29061f4
[realsense2] Add tm2 feature for support T265 devices (#10673)
* [realsense2] Add tm2 feature for support T265 devices

* Fix tools build error on Visual Studio 2019

* Update the way to handle features as vcpkg_check_features()

* Update
2020-04-16 13:29:32 -07:00

14 lines
476 B
Diff

diff --git a/common/rs-config.cpp b/common/rs-config.cpp
index ff3a757..c9efa1a 100644
--- a/common/rs-config.cpp
+++ b/common/rs-config.cpp
@@ -97,7 +97,7 @@ config_file::config_file(std::string filename)
auto j = json::parse(str);
for (json::iterator it = j.begin(); it != j.end(); ++it)
{
- _values[it.key()] = it.value();
+ _values[it.key()] = it.value().get<std::string>();
}
}
catch(...)