This repository was archived by the owner on Oct 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
- # Clara v1.1.3
1
+ # Clara v1.1.4
2
2
[ ![ Build Status] ( https://travis-ci.org/catchorg/Clara.svg?branch=master )] ( https://travis-ci.org/catchorg/Clara )
3
3
[ ![ Build status] ( https://ci.appveyor.com/api/projects/status/github/catchorg/Clara?brach=master&svg=true )] ( https://ci.appveyor.com/project/catchorg/clara )
4
4
[ ![ codecov] ( https://codecov.io/gh/catchorg/Clara/branch/master/graph/badge.svg )] ( https://codecov.io/gh/catchorg/Clara )
Original file line number Diff line number Diff line change 5
5
//
6
6
// See https://github.com/philsquared/Clara for more details
7
7
8
- // Clara v1.1.3
8
+ // Clara v1.1.4
9
9
10
10
#ifndef CLARA_HPP_INCLUDED
11
11
#define CLARA_HPP_INCLUDED
Original file line number Diff line number Diff line change 5
5
//
6
6
// See https://github.com/philsquared/Clara for more details
7
7
8
- // Clara v1.1.3
8
+ // Clara v1.1.4
9
9
10
10
#ifndef CLARA_HPP_INCLUDED
11
11
#define CLARA_HPP_INCLUDED
21
21
#ifndef CLARA_CONFIG_OPTIONAL_TYPE
22
22
#ifdef __has_include
23
23
#if __has_include(<optional>) && __cplusplus >= 201703L
24
+ #include < optional>
24
25
#define CLARA_CONFIG_OPTIONAL_TYPE std::optional
25
26
#endif
26
27
#endif
@@ -665,11 +666,11 @@ namespace detail {
665
666
}
666
667
#ifdef CLARA_CONFIG_OPTIONAL_TYPE
667
668
template <typename T>
668
- inline auto convertInto ( std::string const &source, std::optional <T>& target ) -> ParserResult {
669
+ inline auto convertInto ( std::string const &source, CLARA_CONFIG_OPTIONAL_TYPE <T>& target ) -> ParserResult {
669
670
T temp;
670
671
auto result = convertInto ( source, temp );
671
672
if ( result )
672
- target = temp;
673
+ target = std::move ( temp) ;
673
674
return result;
674
675
}
675
676
#endif // CLARA_CONFIG_OPTIONAL_TYPE
You can’t perform that action at this time.
0 commit comments