C++98/11 class for gaussian error propagation