prog.cpp: In instantiation of ‘test& operator&(test&, const T&) [with T = int]’:
prog.cpp:22:11: required from here
prog.cpp:14:9: error: static assertion failed: no operator overloaded for pointers.
static_assert(std::is_pointer<T>::value, "no operator overloaded for pointers.");
^
Standard output is empty
for question http://stackoverflow.com/questions/19756979/static-assert-dont-work-properly