[boost] [c++ question] detecting reference to temporaries