Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Fiona-J-W/8675392 to your computer and use it in GitHub Desktop.
Save Fiona-J-W/8675392 to your computer and use it in GitHub Desktop.
clang++ -O0 -Wextra -pedantic -std=c++11 -D_GLIBCXX_DEBUG -g -c -o main.o src/test/main.cpp
In file included from src/test/main.cpp:1:
src/test/../lib/StringBuilder.h:95:2: error: static_assert failed "printToStream must not be called with an unprintable argument"
static_assert(getPrintableCategory<T>() != PrintableCategory::Unprintable,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/test/../lib/StringBuilder.h:232:3: note: in instantiation of function template specialization 'Aux::Impl::printToStream<Unprintable>' requested here
printToStream(stream, std::get<I-1>(arg));
^
src/test/../lib/StringBuilder.h:237:53: note: in instantiation of member function 'Aux::Impl::printTupleHelper<std::tuple<Unprintable>, 1, 1>::print'
requested here
printTupleHelper<T, 1, std::tuple_size<T>::value>::print(stream, arg);
^
src/test/../lib/StringBuilder.h:97:2: note: in instantiation of function template specialization 'Aux::Impl::printToStreamTagged<std::tuple<Unprintable> >'
requested here
printToStreamTagged(stream, arg, PrintableCategoryTag<getPrintableCategory<T>()>{});
^
src/test/../lib/StringBuilder.h:254:3: note: in instantiation of function template specialization 'Aux::Impl::printToStream<std::tuple<Unprintable>>'
requested here
printToStream(stream, *it);
^
src/test/../lib/StringBuilder.h:97:2: note: in instantiation of function template specialization
'Aux::Impl::printToStreamTagged<std::__debug::vector<std::tuple<Unprintable>, std::allocator<std::tuple<Unprintable> > > >' requested here
printToStreamTagged(stream, arg, PrintableCategoryTag<getPrintableCategory<T>()>{});
^
src/test/../lib/StringBuilder.h:254:3: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
printToStream(stream, *it);
^
src/test/../lib/StringBuilder.h:97:2: note: in instantiation of function template specialization
'Aux::Impl::printToStreamTagged<std::__debug::vector<std::__debug::vector<std::tuple<Unprintable>, std::allocator<std::tuple<Unprintable> > >,
std::allocator<std::__debug::vector<std::tuple<Unprintable>, std::allocator<std::tuple<Unprintable> > > > > >' requested here
printToStreamTagged(stream, arg, PrintableCategoryTag<getPrintableCategory<T>()>{});
^
src/test/../lib/StringBuilder.h:98:2: note: in instantiation of function template specialization
'Aux::Impl::printToStream<std::__debug::vector<std::__debug::vector<std::tuple<Unprintable>, std::allocator<std::tuple<Unprintable> > >,
std::allocator<std::__debug::vector<std::tuple<Unprintable>, std::allocator<std::tuple<Unprintable> > > > >>' requested here
printToStream(stream, args...);
^
src/test/../lib/StringBuilder.h:275:8: note: in instantiation of function template specialization 'Aux::Impl::printToStream<char [37],
std::__debug::vector<std::__debug::vector<std::tuple<Unprintable>, std::allocator<std::tuple<Unprintable> > >,
std::allocator<std::__debug::vector<std::tuple<Unprintable>, std::allocator<std::tuple<Unprintable> > > > > >' requested here
Impl::printToStream(stream, args...);
^
src/test/../lib/Log.h:99:3: note: in instantiation of function template specialization 'Aux::printToStream<char [37],
std::__debug::vector<std::__debug::vector<std::tuple<Unprintable>, std::allocator<std::tuple<Unprintable> > >,
std::allocator<std::__debug::vector<std::tuple<Unprintable>, std::allocator<std::tuple<Unprintable> > > > > >' requested here
printToStream(stream, args...);
^
src/test/main.cpp:73:2: note: in instantiation of function template specialization 'Aux::Log::log<char [37],
std::__debug::vector<std::__debug::vector<std::tuple<Unprintable>, std::allocator<std::tuple<Unprintable> > >,
std::allocator<std::__debug::vector<std::tuple<Unprintable>, std::allocator<std::tuple<Unprintable> > > > > >' requested here
DEBUG("vector<vector<tuple<Unprintable>>>: ", std::vector<std::vector<std::tuple<Unprintable>>>{});
^
src/test/../lib/Log.h:37:32: note: expanded from macro 'DEBUG'
#define DEBUG(...) ::Aux::Log::log({__FILE__, __PRETTY_FUNCTION__, __LINE__},\
^
1 error generated.
clang++ -O0 -Wextra -pedantic -std=c++11 -D_GLIBCXX_DEBUG -g -c -o main.o src/test/main.cpp
In file included from src/test/main.cpp:1:
src/test/../lib/StringBuilder.h:95:2: error: static_assert failed "printToStream must not be called with an unprintable argument"
static_assert(getPrintableCategory<T>() != PrintableCategory::Unprintable,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/test/../lib/StringBuilder.h:98:2: note: in instantiation of function template specialization 'Aux::Impl::printToStream<Unprintable>' requested here
printToStream(stream, args...);
^
src/test/../lib/StringBuilder.h:275:8: note: in instantiation of function template specialization 'Aux::Impl::printToStream<char [14], Unprintable>'
requested here
Impl::printToStream(stream, args...);
^
src/test/../lib/Log.h:99:3: note: in instantiation of function template specialization 'Aux::printToStream<char [14], Unprintable>' requested here
printToStream(stream, args...);
^
src/test/main.cpp:72:2: note: in instantiation of function template specialization 'Aux::Log::log<char [14], Unprintable>' requested here
DEBUG("Unprintable: ", Unprintable{});
^
src/test/../lib/Log.h:37:32: note: expanded from macro 'DEBUG'
#define DEBUG(...) ::Aux::Log::log({__FILE__, __PRETTY_FUNCTION__, __LINE__},\
^
1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment