We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Env: MacOS Catalina (also tried in OS version MacOS High Serria) Clang:
llvm: 7.1.0 (also tried in llvm version 9.0.0)
Compile Error:
Scanning dependencies of target hello-driver [ 98%] Building CXX object tools/CMakeFiles/hello-driver.dir/hello_driver.cpp.o In file included from /Users/zhangyy/CLionProjects/eos-vm/tools/hello_driver.cpp:1: In file included from /Users/zhangyy/CLionProjects/eos-vm/include/eosio/vm/backend.hpp:3: /Users/zhangyy/CLionProjects/eos-vm/include/eosio/vm/allocator.hpp:213:45: error: no member named 'extract' in 'std::__1::set<std::__1::pair<unsigned long, void *>, eosio::vm::jit_allocator::by_size, std::__1::allocator<std::__1::pair<unsigned long, void *> > >' auto node = free_blocks_by_size.extract({lhs->second, lhs->first}); ~~~~~~~~~~~~~~~~~~~ ^ /Users/zhangyy/CLionProjects/eos-vm/include/eosio/vm/allocator.hpp:174:27: error: no member named 'extract' in 'std::__1::map<void *, unsigned long, std::__1::less<void *>, std::__1::allocator<std::__1::pair<void *const, unsigned long> > >' auto node = from.extract(key); ~~~~ ^ /Users/zhangyy/CLionProjects/eos-vm/include/eosio/vm/allocator.hpp:106:10: note: in instantiation of function template specialization 'eosio::vm::jit_allocator::transfer_node<std::__1::map<void *, unsigned long, std::__1::less<void *>, std::__1::allocator<std::__1::pair<void *const, unsigned long> > > >' requested here transfer_node(free_blocks, allocated_blocks, best->second); ^ /Users/zhangyy/CLionProjects/eos-vm/include/eosio/vm/allocator.hpp:174:27: error: no member named 'extract' in 'std::__1::set<std::__1::pair<unsigned long, void *>, eosio::vm::jit_allocator::by_size, std::__1::allocator<std::__1::pair<unsigned long, void *> > >' auto node = from.extract(key); ~~~~ ^ /Users/zhangyy/CLionProjects/eos-vm/include/eosio/vm/allocator.hpp:107:17: note: in instantiation of function template specialization 'eosio::vm::jit_allocator::transfer_node<std::__1::set<std::__1::pair<unsigned long, void *>, eosio::vm::jit_allocator::by_size, std::__1::allocator<std::__1::pair<unsigned long, void *> > > >' requested here best = transfer_node(free_blocks_by_size, allocated_blocks_by_size, *best); ^ 3 errors generated. make[2]: *** [tools/CMakeFiles/hello-driver.dir/hello_driver.cpp.o] Error 1 make[1]: *** [tools/CMakeFiles/hello-driver.dir/all] Error 2 make: *** [all] Error 2
It seems Clang does not support C++17 feature map and set extract function.
The text was updated successfully, but these errors were encountered:
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdinc++ -I <libcxx-install-prefix>/include")
Sorry, something went wrong.
No branches or pull requests
Env: MacOS Catalina (also tried in OS version MacOS High Serria)
Clang:
(also tried in clang version 10.0.1)
llvm: 7.1.0 (also tried in llvm version 9.0.0)
Compile Error:
It seems Clang does not support C++17 feature map and set extract function.
The text was updated successfully, but these errors were encountered: