26 #include <type_traits>
35 ignore_unused_variable_warning(T
const &) {}
38 using std::make_unique;
49 template<
typename To,
typename From>
inline To down_cast(From* f)
52 (std::is_base_of<From,
53 typename std::remove_pointer<To>::type>::value),
54 "target type not derived from source type");
56 assert(f ==
nullptr ||
dynamic_cast<To
>(f) !=
nullptr);
58 return static_cast<To
>(f);
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25