Expected objects for C++98 and later