catkin build時にエラーになる(error: ‘xxx’ is not a class or namespace)


catkin build時にエラーになる

$ cd catkin_ws
$ catkin build
src/following_planner.cpp:163:23: error: ‘GoalStatus’ is not a class or namespace
   else if (status_ == GoalStatus::GOALREACHED)
                       ^
make[2]: *** [CMakeFiles/following_planner.dir/src/following_planner.cpp.o] Error 1
make[1]: *** [CMakeFiles/following_planner.dir/all] Error 2

以下の通りCMakelist.txtにc++のコンパイルオプションを追加して解決

CMakelist.txt
-# add_compile_options(-std=c++11)
+add_compile_options(-std=c++11)

環境

ubuntu16.04
ROS kinetic