Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
v1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed Mar 9, 2018
1 parent 47f772e commit 008c2ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Clara v1.1.3
# Clara v1.1.4
[![Build Status](https://travis-ci.org/catchorg/Clara.svg?branch=master)](https://travis-ci.org/catchorg/Clara)
[![Build status](https://ci.appveyor.com/api/projects/status/github/catchorg/Clara?brach=master&svg=true)](https://ci.appveyor.com/project/catchorg/clara)
[![codecov](https://codecov.io/gh/catchorg/Clara/branch/master/graph/badge.svg)](https://codecov.io/gh/catchorg/Clara)
Expand Down
2 changes: 1 addition & 1 deletion include/clara.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// See https://github.com/philsquared/Clara for more details

// Clara v1.1.3
// Clara v1.1.4

#ifndef CLARA_HPP_INCLUDED
#define CLARA_HPP_INCLUDED
Expand Down
7 changes: 4 additions & 3 deletions single_include/clara.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// See https://github.com/philsquared/Clara for more details

// Clara v1.1.3
// Clara v1.1.4

#ifndef CLARA_HPP_INCLUDED
#define CLARA_HPP_INCLUDED
Expand All @@ -21,6 +21,7 @@
#ifndef CLARA_CONFIG_OPTIONAL_TYPE
#ifdef __has_include
#if __has_include(<optional>) && __cplusplus >= 201703L
#include <optional>
#define CLARA_CONFIG_OPTIONAL_TYPE std::optional
#endif
#endif
Expand Down Expand Up @@ -665,11 +666,11 @@ namespace detail {
}
#ifdef CLARA_CONFIG_OPTIONAL_TYPE
template<typename T>
inline auto convertInto( std::string const &source, std::optional<T>& target ) -> ParserResult {
inline auto convertInto( std::string const &source, CLARA_CONFIG_OPTIONAL_TYPE<T>& target ) -> ParserResult {
T temp;
auto result = convertInto( source, temp );
if( result )
target = temp;
target = std::move(temp);
return result;
}
#endif // CLARA_CONFIG_OPTIONAL_TYPE
Expand Down

0 comments on commit 008c2ae

Please sign in to comment.