Opened 8 years ago

Closed 8 years ago

#11006 closed Bugs (fixed)

Impossible to instantiate time_fmt_io_saver due to several errors.

Reported by: rkawulak Owned by: viboes
Milestone: Boost 1.58.0 Component: chrono
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description (last modified by rkawulak)

1.

time_point_io.hpp:535:49: error: no matching function for call to ‘get_time_fmt(boost::chrono::time_fmt_io_saver<char, std::char_traits<char> >::state_type&)’

ios_base_state.hpp:135:37: note: template argument deduction/substitution failed

2.

time_point_io.hpp:564:38: error: no matching function for call to ‘set_time_fmt(boost::chrono::time_fmt_io_saver<char, std::char_traits<char> >::aspect_type&, boost::chrono::time_fmt_io_saver<char, std::char_traits<char> >::aspect_type&)’

ios_base_state.hpp:141:17: note: template argument deduction/substitution failed

Change History (6)

comment:1 by rkawulak, 8 years ago

Description: modified (diff)

comment:2 by viboes, 8 years ago

Please, could you provide the example that was the source of these compiler errors?

comment:3 by viboes, 8 years ago

Status: newassigned

comment:4 by rkawulak, 8 years ago

#include <iostream>
#include <boost/chrono/io/time_point_io.hpp>
boost::chrono::time_fmt_io_saver<> tmp(std::cout);

http://ideone.com/WVbVxK

comment:6 by viboes, 8 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.