rec-attend-public icon indicating copy to clipboard operation
rec-attend-public copied to clipboard

error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14

Open CasellaJr opened this issue 2 years ago • 0 comments

Running ./hungarian_build.sh throws following error:

from hungarian.cc:15:
/home/lmancuso/leaf/brunotf/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h: In member function ‘void tensorflow::internal::MaybeWith32BitIndexingImpl<Eigen::GpuDevice>::operator()(Func, Args&& ...) const’:
/home/lmancuso/leaf/brunotf/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h:176:25: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
     auto all = [](const auto&... bool_vals) {
                         ^~~~
/home/lmancuso/leaf/brunotf/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h:176:34: error: expansion pattern ‘const int&’ contains no argument packs
     auto all = [](const auto&... bool_vals) {
                                  ^~~~~~~~~
/home/lmancuso/leaf/brunotf/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h: In lambda function:
/home/lmancuso/leaf/brunotf/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h:177:22: error: ‘bool_vals’ was not declared in this scope
       for (bool b : {bool_vals...}) {
                      ^~~~~~~~~

CasellaJr avatar Mar 09 '22 08:03 CasellaJr