Skip to content

Commit

Permalink
Version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zemasoft committed May 9, 2018
1 parent d281e18 commit 66a109a
Show file tree
Hide file tree
Showing 5 changed files with 437 additions and 59 deletions.
12 changes: 6 additions & 6 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
Example 1 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/E38lvVerm55qDy8C)
Example 1 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/iQRrnUDkhC6KFJud)
=========

Compile time matching only.

Example 2 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/MgROPI42JCMrbDPj)
Example 2 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/CQm52i9yjKa47DAo)
=========

Compile time and runtime check of ID's validity using a pattern.

Example 3 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/IZ0bALQl2s5fJizh)
Example 3 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/v1AW4oaJuA8gN4Dq)
=========

Example 2 extended with a default pattern and with a user-defined string
literal.

Example 4 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/goJ3qZcAqCcjQomE)
Example 4 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/rvmawltpGjc8y2Mm)
=========

Matching of command line arguments.

Example 5 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/0FLqhpOkNwc9gvI1)
Example 5 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/Pop4jqw8olYRWQMX)
=========

List files on a given path which match a given pattern.

Example 6 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/jkzdCaX2egYByfzc)
Example 6 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/k04OU0lN2BJp5n5n)
=========

Matching of generated DNA sequences.
2 changes: 1 addition & 1 deletion include/cx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define CX_HPP

#define CX_VERSION_MAJOR 1
#define CX_VERSION_MINOR 0
#define CX_VERSION_MINOR 1
#define CX_VERSION_PATCH 0

#include "cx/algorithm.hpp"
Expand Down
2 changes: 1 addition & 1 deletion include/wildcards.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define WILDCARDS_HPP

#define WILDCARDS_VERSION_MAJOR 1
#define WILDCARDS_VERSION_MINOR 0
#define WILDCARDS_VERSION_MINOR 1
#define WILDCARDS_VERSION_PATCH 0

#include "wildcards/cards.hpp"
Expand Down
15 changes: 10 additions & 5 deletions single_include/cx.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// THIS FILE HAS BEEN GENERATED AUTOMATICALLY. DO NOT EDIT DIRECTLY.
// Generated: 2018-04-27 20:08:52.300450472
// Generated: 2018-05-09 09:34:45.195168351
// Copyright Tomas Zeman 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef CX_HPP
#define CX_HPP
#define CX_VERSION_MAJOR 1
#define CX_VERSION_MINOR 0
#define CX_VERSION_MINOR 1
#define CX_VERSION_PATCH 0
#ifndef CX_ALGORITHM_HPP
#define CX_ALGORITHM_HPP
Expand Down Expand Up @@ -330,12 +330,17 @@
#endif
#endif
#endif
#define cfg_HAS_CONSTEXPR14 __cpp_constexpr >= 201304
#define cfg_HAS_CONSTEXPR14 (__cpp_constexpr >= 201304)
#if cfg_HAS_CONSTEXPR14
#define cfg_constexpr14 constexpr
#else
#define cfg_constexpr14
#endif
#if cfg_HAS_CONSTEXPR14 && !(defined(__GNUC__) && __GNUC__ < 6 && !defined(__clang__))
#define cfg_HAS_FULL_FEATURED_CONSTEXPR_SWITCH 1
#else
#define cfg_HAS_FULL_FEATURED_CONSTEXPR_SWITCH 0
#endif
#endif
namespace cx
{
Expand Down Expand Up @@ -408,11 +413,11 @@ return data[pos];
}
constexpr const T& at(std::size_t pos) const
{
return pos < size() ? data[pos] : throw std::out_of_range("");
return pos < size() ? data[pos] : throw std::out_of_range("The given position is out of range");
}
cfg_constexpr14 T& at(std::size_t pos)
{
return pos < size() ? data[pos] : throw std::out_of_range("");
return pos < size() ? data[pos] : throw std::out_of_range("The given position is out of range");
}
T data[N > 0 ? N : 1];
};
Expand Down
Loading

0 comments on commit 66a109a

Please sign in to comment.