Ticket #2303: date_time.patch
File date_time.patch, 5.2 KB (added by , 14 years ago) |
---|
-
boost/date_time/posix_time/posix_time_config.hpp
82 82 //Give duration access to ticks constructor -- hide from users 83 83 friend class date_time::time_duration<time_duration, time_res_traits>; 84 84 private: 85 explicit time_duration(impl_type ticks) :86 date_time::time_duration<time_duration, time_res_traits>(ticks)85 explicit time_duration(impl_type _ticks) : 86 date_time::time_duration<time_duration, time_res_traits>(_ticks) 87 87 {} 88 88 }; 89 89 -
boost/date_time/posix_time/posix_time_io.hpp
55 55 //since we would always need to reconstruct for every time period 56 56 //if the locale did not already exist. Of course this will be overridden 57 57 //if the user imbues as some later point. 58 std::ostreambuf_iterator<CharT> oitr (os);58 std::ostreambuf_iterator<CharT> oitr_(os); 59 59 custom_ptime_facet* f = new custom_ptime_facet(); 60 60 std::locale l = std::locale(os.getloc(), f); 61 61 os.imbue(l); 62 f->put(oitr , os, os.fill(), p);62 f->put(oitr_, os, os.fill(), p); 63 63 } 64 64 return os; 65 65 } … … 126 126 //since we would always need to reconstruct for every time period 127 127 //if the local did not already exist. Of course this will be overridden 128 128 //if the user imbues as some later point. 129 std::ostreambuf_iterator<CharT> oitr (os);129 std::ostreambuf_iterator<CharT> oitr_(os); 130 130 custom_ptime_facet* f = new custom_ptime_facet(); 131 131 std::locale l = std::locale(os.getloc(), f); 132 132 os.imbue(l); 133 f->put(oitr , os, os.fill(), p);133 f->put(oitr_, os, os.fill(), p); 134 134 } 135 135 return os; 136 136 } … … 194 194 //since we would always need to reconstruct for every time period 195 195 //if the locale did not already exist. Of course this will be overridden 196 196 //if the user imbues as some later point. 197 std::ostreambuf_iterator<CharT> oitr (os);197 std::ostreambuf_iterator<CharT> oitr_(os); 198 198 custom_ptime_facet* f = new custom_ptime_facet(); 199 199 std::locale l = std::locale(os.getloc(), f); 200 200 os.imbue(l); 201 f->put(oitr , os, os.fill(), td);201 f->put(oitr_, os, os.fill(), td); 202 202 } 203 203 return os; 204 204 } -
boost/date_time/period_parser.hpp
50 50 enum period_range_option { AS_OPEN_RANGE, AS_CLOSED_RANGE }; 51 51 52 52 //! Constructor that sets up period parser options 53 period_parser(period_range_option range_option = AS_CLOSED_RANGE,53 period_parser(period_range_option range_option_ = AS_CLOSED_RANGE, 54 54 const char_type* const period_separator = default_period_separator, 55 55 const char_type* const period_start_delimeter = default_period_start_delimeter, 56 56 const char_type* const period_open_range_end_delimeter = default_period_open_range_end_delimeter, 57 57 const char_type* const period_closed_range_end_delimeter = default_period_closed_range_end_delimeter) 58 : m_range_option(range_option )58 : m_range_option(range_option_) 59 59 { 60 60 delimiters.push_back(string_type(period_separator)); 61 61 delimiters.push_back(string_type(period_start_delimeter)); -
boost/date_time/date_generator_formatter.hpp
75 75 } 76 76 77 77 //! Constructor that allows for a custom set of phrase elements 78 date_generator_formatter(const string_type& first ,79 const string_type& second ,80 const string_type& third ,81 const string_type& fourth ,82 const string_type& fifth ,83 const string_type& last ,84 const string_type& before ,85 const string_type& after ,86 const string_type& of )78 date_generator_formatter(const string_type& first_, 79 const string_type& second_, 80 const string_type& third_, 81 const string_type& fourth_, 82 const string_type& fifth_, 83 const string_type& last_, 84 const string_type& before_, 85 const string_type& after_, 86 const string_type& of_) 87 87 { 88 88 phrase_strings.push_back(string_type(first_string)); 89 89 phrase_strings.push_back(string_type(second_string));