Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

clang HEAD 9.0.0 (https://github.com/llvm-mirror/clang.git 59f2009cd157fc96a0d558125405b98586cd83d2) (https://github.com/llvm-mirror/llvm.git 86f7633c4dd5909fb88c8e222ae53e1d336af0cd)

Options
Warnings
Don't Use Boost
C++2a
no pedantic

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -std=c++2a
In file included from prog.cc:2:
/opt/wandbox/clang-head/include/c++/v1/numeric:182:16: error: object of type 'std::__1::pair<const unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > >' cannot be assigned because its copy assignment operator is implicitly deleted
        __init = __b(__init, *__first);
               ^
prog.cc:15:19: note: in instantiation of function template specialization 'std::__1::reduce<std::__1::__hash_map_iterator<std::__1::__hash_iterator<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > >, void *> *> >, std::__1::pair<const unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > >, (lambda at prog.cc:16:9)>' requested here
    auto p = std::reduce(in.begin(), in.end(), V{}, 
                  ^
/opt/wandbox/clang-head/include/c++/v1/utility:328:5: note: copy assignment operator is implicitly deleted because 'pair<const unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > >' has a user-declared move constructor
    pair(pair&&) = default;
    ^
1 error generated.
Exit Code:
1