Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d895042 commit 8842f82Copy full SHA for 8842f82
include/behaviortree_cpp_v3/basic_types.h
@@ -81,6 +81,9 @@ int convertFromString<int>(StringView str);
81
template <>
82
unsigned convertFromString<unsigned>(StringView str);
83
84
+template <>
85
+long convertFromString<long>(StringView str);
86
+
87
88
double convertFromString<double>(StringView str);
89
src/basic_types.cpp
@@ -113,6 +113,12 @@ int convertFromString<int>(StringView str)
113
return std::stoi(str.data());
114
}
115
116
117
+long convertFromString<long>(StringView str)
118
+{
119
+ return std::stol(str.data());
120
+}
121
122
123
unsigned convertFromString<unsigned>(StringView str)
124
{
0 commit comments