Skip to content

Commit 4a7609a

Browse files
Initialize std::vector as empty inside filter traits
Signed-off-by: Pedro Nogueira <[email protected]>
1 parent f68ad4a commit 4a7609a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

control_toolbox/include/control_toolbox/filter_traits.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,7 @@ struct FilterTraits<std::vector<U>>
185185
using StorageType = FilterVector<U>;
186186
using DataType = std::vector<U>;
187187

188-
static void initialize(StorageType & storage)
189-
{
190-
storage.data = std::vector<U>{std::numeric_limits<U>::quiet_NaN()};
191-
}
188+
static void initialize(StorageType & storage) { (void)storage; }
192189

193190
static bool is_finite(const StorageType & storage)
194191
{

0 commit comments

Comments
 (0)