Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 3 years ago

Language

C++

Compiler

clang 14.0.0

Options
Warnings
Boost 1.79.0
C++2b(GNU)
no pedantic
Raw compiler options
-Wno-deprecated-copy

Author

anonymous

almost 3 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.79.0-clang-14.0.0/include -std=gnu++2b -Wno-deprecated-copy
prog.cc:74:23: error: no viable conversion from 'variant<[...], double, maneuvering::Identifier, boost::recursive_wrapper<FunctionCall>>' to 'variant<[...], boost::recursive_wrapper<Expr>, boost::recursive_wrapper<Atom>, (no argument)>'
    maneuvering::Base base = atom;
                      ^      ~~~~
/opt/wandbox/boost-1.79.0-clang-14.0.0/include/boost/variant/variant.hpp:1759:5: note: candidate constructor not viable: no known conversion from 'maneuvering::Atom' (aka 'variant<maneuvering::Nil, double, basic_string<char, char_traits<char>, allocator<char>>, recursive_wrapper<maneuvering::FunctionCall>>') to 'const boost::variant<maneuvering::Nil, boost::recursive_wrapper<maneuvering::Expr>, boost::recursive_wrapper<boost::variant<maneuvering::Nil, double, std::string, boost::recursive_wrapper<maneuvering::FunctionCall>>>> &' for 1st argument
    variant(const variant& operand)
    ^
/opt/wandbox/boost-1.79.0-clang-14.0.0/include/boost/variant/variant.hpp:1770:5: note: candidate constructor not viable: no known conversion from 'maneuvering::Atom' (aka 'variant<maneuvering::Nil, double, basic_string<char, char_traits<char>, allocator<char>>, recursive_wrapper<maneuvering::FunctionCall>>') to 'boost::variant<maneuvering::Nil, boost::recursive_wrapper<maneuvering::Expr>, boost::recursive_wrapper<boost::variant<maneuvering::Nil, double, std::string, boost::recursive_wrapper<maneuvering::FunctionCall>>>> &&' for 1st argument
    variant(variant&& operand) BOOST_NOEXCEPT_IF(variant_move_noexcept_constructible::type::value)
    ^
/opt/wandbox/boost-1.79.0-clang-14.0.0/include/boost/variant/variant.hpp:1712:35: note: candidate template ignored: disabled by 'enable_if' [with T = boost::variant<maneuvering::Nil, double, std::string, boost::recursive_wrapper<maneuvering::FunctionCall>>]
        typename boost::enable_if<mpl::or_<
                                  ^
/opt/wandbox/boost-1.79.0-clang-14.0.0/include/boost/variant/variant.hpp:1726:37: note: candidate template ignored: disabled by 'enable_if' [with T = boost::variant<maneuvering::Nil, double, std::string, boost::recursive_wrapper<maneuvering::FunctionCall>>]
        , typename boost::enable_if<mpl::or_<
                                    ^
/opt/wandbox/boost-1.79.0-clang-14.0.0/include/boost/variant/variant.hpp:1742:35: note: candidate template ignored: disabled by 'enable_if' [with T = boost::variant<maneuvering::Nil, double, std::string, boost::recursive_wrapper<maneuvering::FunctionCall>> &]
        typename boost::enable_if<mpl::or_<
                                  ^
1 error generated.
Exit Code:
1