We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 264c263 commit eabcdf0Copy full SHA for eabcdf0
demo_nodes_cpp/src/topics/allocator_tutorial.cpp
@@ -92,7 +92,9 @@ constexpr bool operator!=(
92
return false;
93
}
94
95
-// You need to overload get_rcl_allocator for custom allocators.
+namespace rclcpp {
96
+
97
+// You need to overload rclcpp::get_rcl_allocator for custom allocators.
98
// This function needs to build an instance of rcl_allocator_t
99
// for use in C code.
100
template<typename T>
@@ -119,6 +121,8 @@ rcl_allocator_t get_rcl_allocator(MyAllocator<T>)
119
121
return rcl_allocator;
120
122
123
124
+} // namespace rclcpp
125
126
// Override global new and delete to count calls during execution.
127
128
static bool is_running = false;
0 commit comments