macro for std  and tr1