Skip to content

Commit 5611184

Browse files
committed
Change default value in NavGrid to template-default
1 parent 0172e3a commit 5611184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nav_grid/include/nav_grid/nav_grid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace nav_grid
7676
template <typename T> class NavGrid
7777
{
7878
public:
79-
explicit NavGrid(const T default_value = 0) : default_value_(default_value) {}
79+
explicit NavGrid(const T default_value = T{}) : default_value_(default_value) {}
8080

8181
/**
8282
* @brief Reset the contents of the grid

0 commit comments

Comments
 (0)