Onnxruntime: NodeArg class has a move constructor but doesn't have a move assignment operator

Created on 26 Oct 2019  路  2Comments  路  Source: microsoft/onnxruntime

[ 77%] Building CXX object CMakeFiles/onnxruntime_perf_test.dir/usr/ports/math/py-onnxruntime/work-py36/onnxruntime-c7599d0/onnxruntime/test/perftest/performance_runner.cc.o
In file included from /usr/ports/math/py-onnxruntime/work-py36/onnxruntime-c7599d0/onnxruntime/test/opaque_api/test_opaque_api.cc:16:
/usr/ports/math/py-onnxruntime/work-py36/onnxruntime-c7599d0/onnxruntime/test/providers/provider_test_utils.h:440:11: error: explicitly defaulted move assignment operator is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
    Data& operator=(Data&&) = default;
          ^
/usr/ports/math/py-onnxruntime/work-py36/onnxruntime-c7599d0/onnxruntime/test/providers/provider_test_utils.h:427:26: note: move assignment operator of 'Data' is implicitly deleted because field 'def_' has a deleted move assignment operator
    onnxruntime::NodeArg def_;
                         ^

FreeBSD 12

bug

Most helpful comment

I can confirm the same errors are thrown on my Mac with OS X 10.15.

All 2 comments

You should be able to easily reproduce this with the latest clang compiler. This is basically a clang compatibility issue.

I can confirm the same errors are thrown on my Mac with OS X 10.15.

Was this page helpful?
0 / 5 - 0 ratings