Skip to content

Commit

Permalink
Bugfix issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
veselink1 committed Sep 24, 2019
1 parent b3138c2 commit 4eaaeb2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [refl-cpp](https://github.com/veselink1/refl-cpp) (v0.6.1) ([Documentation](https://veselink1.github.io/refl-cpp/namespacerefl.html))
# [refl-cpp](https://github.com/veselink1/refl-cpp) (v0.6.2) ([Documentation](https://veselink1.github.io/refl-cpp/namespacerefl.html))
[![Gitter](https://badges.gitter.im/refl-cpp/community.svg)](https://gitter.im/refl-cpp/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

A compile-time reflection library for modern C++ with support for templates, attributes and proxies 🔥
Expand Down Expand Up @@ -116,6 +116,9 @@ REFL_FUNC(Function, Attribute...)
## Changelog
*Releases follow the MAJOR.MINOR.PATCH versioning scheme*

### v0.6.2
- Bugfix: Compiler error in clang: refl::attr::property's implicitly-declared default constructor is deleted due to N3797 §8.5/7 [#9](https://github.com/veselink1/refl-cpp/issues/9)

### v0.6.1
- Bugfix: const_string::operator std::string() was incorrectly marked as constexpr which caused compilation failure in non-C++20-compliant compilers

Expand Down
7 changes: 5 additions & 2 deletions refl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1681,9 +1681,12 @@ namespace refl {
*/
struct property : public usage::function
{
std::optional<const char*> const friendly_name;
const std::optional<const char*> friendly_name;

constexpr property() noexcept = default;
constexpr property() noexcept
: friendly_name{}
{
}

constexpr property(const char* friendly_name) noexcept
: friendly_name(friendly_name)
Expand Down

0 comments on commit 4eaaeb2

Please sign in to comment.