Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/date_time/string_convert.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
3 | 3 |
4 /* Copyright (c) 2005 CrystalClear Software, Inc. | 4 /* Copyright (c) 2005 CrystalClear Software, Inc. |
5 * Subject to the Boost Software License, Version 1.0. (See accompanying | 5 * Subject to the Boost Software License, Version 1.0. (See accompanying |
6 * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) | 6 * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) |
7 * Author: Jeff Garland, Bart Garst | 7 * Author: Jeff Garland, Bart Garst |
8 * $Date: 2008-02-27 12:00:24 -0800 (Wed, 27 Feb 2008) $ | 8 * $Date$ |
9 */ | 9 */ |
10 | 10 |
11 #include "boost/date_time/compiler_config.hpp" | 11 #include "boost/date_time/compiler_config.hpp" |
12 #include <string> | 12 #include <string> |
13 | 13 |
19 * are of same type, a copy of the input string is returned. */ | 19 * are of same type, a copy of the input string is returned. */ |
20 template<class InputT, class OutputT> | 20 template<class InputT, class OutputT> |
21 inline | 21 inline |
22 std::basic_string<OutputT> convert_string_type(const std::basic_string<InputT>& inp_str) | 22 std::basic_string<OutputT> convert_string_type(const std::basic_string<InputT>& inp_str) |
23 { | 23 { |
24 typedef std::basic_string<InputT> input_type; | |
25 typedef std::basic_string<OutputT> output_type; | 24 typedef std::basic_string<OutputT> output_type; |
26 output_type result; | 25 output_type result; |
27 result.insert(result.begin(), inp_str.begin(), inp_str.end()); | 26 result.insert(result.begin(), inp_str.begin(), inp_str.end()); |
28 return result; | 27 return result; |
29 } | 28 } |