Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8842f82

Browse files
minor change
1 parent d895042 commit 8842f82

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

include/behaviortree_cpp_v3/basic_types.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ int convertFromString<int>(StringView str);
8181
template <>
8282
unsigned convertFromString<unsigned>(StringView str);
8383

84+
template <>
85+
long convertFromString<long>(StringView str);
86+
8487
template <>
8588
double convertFromString<double>(StringView str);
8689

src/basic_types.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ int convertFromString<int>(StringView str)
113113
return std::stoi(str.data());
114114
}
115115

116+
template <>
117+
long convertFromString<long>(StringView str)
118+
{
119+
return std::stol(str.data());
120+
}
121+
116122
template <>
117123
unsigned convertFromString<unsigned>(StringView str)
118124
{

0 commit comments

Comments
 (0)