Browse Source

Specify lambda return type.

Former-commit-id: 5ee3bc886734727e4eecd49f6da05908c60a8064
Qingnan Zhou 9 years ago
parent
commit
b45233abc9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      include/igl/copyleft/cgal/remesh_intersections.cpp

+ 2 - 1
include/igl/copyleft/cgal/remesh_intersections.cpp

@@ -60,7 +60,8 @@ IGL_INLINE void igl::copyleft::cgal::remesh_intersections(
     };
     };
     typedef std::unordered_map<Edge, std::vector<Index>, EdgeHash > EdgeMap;
     typedef std::unordered_map<Edge, std::vector<Index>, EdgeHash > EdgeMap;
 
 
-    auto normalize_plane_coeff = [](const Plane_3& P) {
+    auto normalize_plane_coeff = [](const Plane_3& P) ->
+    std::vector<typename Kernel::FT> {
         std::vector<typename Kernel::FT> coeffs = {
         std::vector<typename Kernel::FT> coeffs = {
             P.a(), P.b(), P.c(), P.d()
             P.a(), P.b(), P.c(), P.d()
         };
         };