If have written a template function and the code only work correct if the template type is unsinged. Now I search for a way to prevent the fumction from compiling with signed types, without C++11.
template<typename T>
T foo() {
T a=0;
return a<<1;
}