瀏覽代碼

Specify lambda return type.

Former-commit-id: f2b46be3870ba4bfdc4cb24736be36a1e6ffe061
Qingnan Zhou 9 年之前
父節點
當前提交
3bbca40b69
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/igl/copyleft/cgal/intersect_other.cpp

+ 1 - 1
include/igl/copyleft/cgal/intersect_other.cpp

@@ -125,7 +125,7 @@ namespace igl
         // http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Box_intersection_d/Chapter_main.html#Section_63.5 
         // Create the corresponding vector of bounding boxes
         std::vector<Box> A_boxes,B_boxes;
-        const auto box_up = [](Triangles & T, std::vector<Box> & boxes)
+        const auto box_up = [](Triangles & T, std::vector<Box> & boxes) -> void
         {
           boxes.reserve(T.size());
           for (