Bug #81

TDD in template context moans about missing shift operator

Added by Peter Sommerlad about 4 years ago.

Status:NewStart date:15 Sep 2013
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

TDD should be a bit more reluctant about moaning about missing operators in template context:

// no need to understand that now. Gnu compiler specific
template <typename T>
void showTypeInfoAndValue(T&& x){
std::unique_ptr<char,decltype(&::free)> toBeFreed{abi::__cxa_demangle(typeid(T).name(),0,0,0),&::free};
std::string result{toBeFreed.get()};
std::cout << x << " is of type "<<result<<'\n';
}

here it complains about missing left shift operator for x

Also available in: Atom PDF