Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

error: no member named 'make_unique' in namespace 'std' #20784

Open
yurivict opened this issue Dec 19, 2021 · 0 comments
Open

error: no member named 'make_unique' in namespace 'std' #20784

yurivict opened this issue Dec 19, 2021 · 0 comments

Comments

@yurivict
Copy link
Contributor

yurivict commented Dec 19, 2021

Description

In file included from /disk-samsung/freebsd-ports/misc/mxnet/work/incubator-mxnet-1.9.0/src/nnvm/tvm_bridge.cc:37:
In file included from /disk-samsung/freebsd-ports/misc/mxnet/work/incubator-mxnet-1.9.0/3rdparty/tvm/include/tvm/runtime/packed_func.h:29:
/disk-samsung/freebsd-ports/misc/mxnet/work/incubator-mxnet-1.9.0/3rdparty/tvm/include/tvm/runtime/container.h:884:42: error: no member named 'make_unique' in namespace 'std'
    std::unique_ptr<StackFrame> s = std::make_unique<StackFrame>();
                                    ~~~~~^
/disk-samsung/freebsd-ports/misc/mxnet/work/incubator-mxnet-1.9.0/3rdparty/tvm/include/tvm/runtime/container.h:884:54: error: 'StackFrame' does not refer to a value
    std::unique_ptr<StackFrame> s = std::make_unique<StackFrame>();
                                                     ^

You compile with -std=c++11 and docs say that std::make_unique is only available after C++14.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant