We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cc2d8d commit 3ed7898Copy full SHA for 3ed7898
programs/sceneReconstruction/KinectFusionImpl.hpp
@@ -92,14 +92,16 @@ class KinectFusionImpl : public KinectFusion
92
cv::Ptr<T> handle;
93
};
94
95
-template <typename T, std::enable_if_t<std::is_integral<T>::value, bool> = true>
96
-inline T getValue(const yarp::os::Value & v)
+template <typename T>
+inline std::enable_if_t<std::is_integral<T>::value, T>
97
+getValue(const yarp::os::Value & v)
98
{
99
return v.asInt32();
100
}
101
-template <typename T, std::enable_if_t<std::is_floating_point<T>::value, bool> = true>
102
103
+inline std::enable_if_t<std::is_floating_point<T>::value, T>
104
105
106
return v.asFloat32();
107
0 commit comments