summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b65e1d0)
Since it was using a default-constructed value as part of the test
expression, it would fail to detect the operator for classes that are
not default-constructable.
{
static std::ostream &s;
template<typename T>
{
static std::ostream &s;
template<typename T>
- static Yes f(int (*)[sizeof(s<<T())]);
+ static Yes f(int (*)[sizeof(s<<reinterpret_cast<const T &>(s))]);