Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Warning while compiling with Clang 4.0 and libc++ #142

@sytelus

Description

@sytelus

I get -Wmismatched-tags compiler warning when compiling with Clang+Libc++ 4.0 (binaries are here)

[ 18%] Building CXX object rpclib_wrapper/rpclib/CMakeFiles/AirSim-rpclib.dir/lib/rpc/nonstd/optional.cc.o
In file included from /home/shitals/GitHubSrc/AirSim/external/rpclib/lib/rpc/nonstd/optional.cc:1:
/home/shitals/GitHubSrc/AirSim/external/rpclib/include/rpc/nonstd/optional.hpp:1069:1: warning: 'hash' defined as a class template
      here but previously declared as a struct template [-Wmismatched-tags]
class hash< nonstd::optional<T> >
^
/home/shitals/GitHubSrc/AirSim/llvm-build/output/include/c++/v1/type_traits:397:22: note: did you mean class here?
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS hash;
                     ^
1 warning generated.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions