Skip to content

Instantly share code, notes, and snippets.

@LB--
Created September 30, 2013 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LB--/6768509 to your computer and use it in GitHub Desktop.
Save LB--/6768509 to your computer and use it in GitHub Desktop.
>clang++ -std=c++11 -fsyntax-only -Iinclude/ src/*.cpp && clang++ -std=c++11 -fsyntax-only -Iinclude/ example/example-relay-server.cpp && clang++ -std=c++11 -fsyntax-only -Iinclude/ example/example-relay-client.cpp
In file included from src/RelayServer.cpp:3:
In file included from C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/
include\set:61:
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\bits/stl_set.h
:205:57: error:
no member named 'value' in
'std::is_nothrow_copy_constructible<std::less<unsigned short> >'
noexcept(is_nothrow_copy_constructible<_Compare>::value)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
src/RelayServer.cpp:31:22: note: in instantiation of exception specification for
'set' requested here
std::set<ID_type> IDs;
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:13
48:29: note:
in instantiation of template class
'std::remove_volatile<std::less<unsigned short> >' requested here
remove_const<typename remove_volatile<_Tp>::type>::type type;
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:16
5:11: note:
in instantiation of template class 'std::remove_cv<std::less<unsigned
short> >' requested here
remove_cv<_Tp>::type>::value)>
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:10
46:33: note:
in instantiation of template class 'std::is_void<std::less<unsigned short>
>' requested here
template<typename _Tp, bool = is_void<_Tp>::value>
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:10
61:14: note:
in instantiation of default argument for
'__is_nothrow_copy_constructible_impl<std::less<unsigned short> >'
required here
: public __is_nothrow_copy_constructible_impl<_Tp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\bits/stl_set.h
:205:16: note:
in instantiation of template class
'std::is_nothrow_copy_constructible<std::less<unsigned short> >' requested
here
noexcept(is_nothrow_copy_constructible<_Compare>::value)
^
src/RelayServer.cpp:31:22: note: in instantiation of exception specification for
'set' requested here
std::set<ID_type> IDs;
^
In file included from src/RelayServer.cpp:6:
In file included from C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/
include\map:61:
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\bits/stl_map.h
:192:57: error:
no member named 'value' in
'std::is_nothrow_copy_constructible<std::less<unsigned short> >'
noexcept(is_nothrow_copy_constructible<_Compare>::value)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
src/RelayServer.cpp:63:28: note: in instantiation of exception specification for
'map' requested here
std::map<ID_t, Client *> clients;
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:13
48:29: note:
in instantiation of template class
'std::remove_volatile<std::less<unsigned short> >' requested here
remove_const<typename remove_volatile<_Tp>::type>::type type;
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:16
5:11: note:
in instantiation of template class 'std::remove_cv<std::less<unsigned
short> >' requested here
remove_cv<_Tp>::type>::value)>
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:10
46:33: note:
in instantiation of template class 'std::is_void<std::less<unsigned short>
>' requested here
template<typename _Tp, bool = is_void<_Tp>::value>
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:10
61:14: note:
in instantiation of default argument for
'__is_nothrow_copy_constructible_impl<std::less<unsigned short> >'
required here
: public __is_nothrow_copy_constructible_impl<_Tp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\bits/stl_set.h
:205:16: note:
in instantiation of template class
'std::is_nothrow_copy_constructible<std::less<unsigned short> >' requested
here
noexcept(is_nothrow_copy_constructible<_Compare>::value)
^
src/RelayServer.cpp:31:22: note: in instantiation of exception specification for
'set' requested here
std::set<ID_type> IDs;
^
In file included from src/RelayServer.cpp:6:
In file included from C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/
include\map:61:
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\bits/stl_map.h
:192:57: error:
no member named 'value' in
'std::is_nothrow_copy_constructible<std::less<unsigned short> >'
noexcept(is_nothrow_copy_constructible<_Compare>::value)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
src/RelayServer.cpp:64:29: note: in instantiation of exception specification for
'map' requested here
std::map<ID_t, Channel *> channels;
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:13
48:29: note:
in instantiation of template class
'std::remove_volatile<std::less<unsigned short> >' requested here
remove_const<typename remove_volatile<_Tp>::type>::type type;
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:16
5:11: note:
in instantiation of template class 'std::remove_cv<std::less<unsigned
short> >' requested here
remove_cv<_Tp>::type>::value)>
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:10
46:33: note:
in instantiation of template class 'std::is_void<std::less<unsigned short>
>' requested here
template<typename _Tp, bool = is_void<_Tp>::value>
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:10
61:14: note:
in instantiation of default argument for
'__is_nothrow_copy_constructible_impl<std::less<unsigned short> >'
required here
: public __is_nothrow_copy_constructible_impl<_Tp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\bits/stl_set.h
:205:16: note:
in instantiation of template class
'std::is_nothrow_copy_constructible<std::less<unsigned short> >' requested
here
noexcept(is_nothrow_copy_constructible<_Compare>::value)
^
src/RelayServer.cpp:31:22: note: in instantiation of exception specification for
'set' requested here
std::set<ID_type> IDs;
^
src/RelayServer.cpp:52:9: error: exception specification of explicitly defaulted
move assignment operator does not match the calculated one
Impl &operator=(Impl &&) noexcept(true) = default;
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:13
48:29: note:
in instantiation of template class
'std::remove_volatile<std::less<unsigned short> >' requested here
remove_const<typename remove_volatile<_Tp>::type>::type type;
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:16
5:11: note:
in instantiation of template class 'std::remove_cv<std::less<unsigned
short> >' requested here
remove_cv<_Tp>::type>::value)>
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:10
46:33: note:
in instantiation of template class 'std::is_void<std::less<unsigned short>
>' requested here
template<typename _Tp, bool = is_void<_Tp>::value>
^
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\type_traits:10
61:14: note:
in instantiation of default argument for
'__is_nothrow_copy_constructible_impl<std::less<unsigned short> >'
required here
: public __is_nothrow_copy_constructible_impl<_Tp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\bits/stl_set.h
:205:16: note:
in instantiation of template class
'std::is_nothrow_copy_constructible<std::less<unsigned short> >' requested
here
noexcept(is_nothrow_copy_constructible<_Compare>::value)
^
src/RelayServer.cpp:31:22: note: in instantiation of exception specification for
'set' requested here
std::set<ID_type> IDs;
^
src/RelayServer.cpp:52:9: error: exception specification of explicitly defaulted
move assignment operator does not match the calculated one
Impl &operator=(Impl &&) noexcept(true) = default;
^
In file included from src/RelayServer.cpp:1:
In file included from include\Relay.hpp:7:
In file included from C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/
include\memory:81:
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\bits/unique_pt
r.h:65:16: error:
invalid application of 'sizeof' to an incomplete type
'LwRelay::Server::Deny::Impl'
static_assert(sizeof(_Tp)>0,
^~~~~~~~~~~
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\bits/unique_pt
r.h:184:4: note:
in instantiation of member function
'std::default_delete<LwRelay::Server::Deny::Impl>::operator()' requested
here
get_deleter()(__ptr);
^
include\Relay.hpp:412:4: note: in instantiation of member function
'std::unique_ptr<LwRelay::Server::Deny::Impl,
std::default_delete<LwRelay::Server::Deny::Impl> >::~unique_ptr' requested
here
Deny(Deny &&) noexcept(true) = default;
^
include\Relay.hpp:416:11: note: forward declaration of
'LwRelay::Server::Deny::Impl'
struct Impl;
^
6 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment