summaryrefslogtreecommitdiff
path: root/boost/hana/fwd/string.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hana/fwd/string.hpp')
-rw-r--r--boost/hana/fwd/string.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/boost/hana/fwd/string.hpp b/boost/hana/fwd/string.hpp
index c3476d7e72..ab23d52aea 100644
--- a/boost/hana/fwd/string.hpp
+++ b/boost/hana/fwd/string.hpp
@@ -2,7 +2,7 @@
@file
Forward declares `boost::hana::string`.
-@copyright Louis Dionne 2013-2016
+@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
@@ -106,6 +106,12 @@ BOOST_HANA_NAMESPACE_BEGIN
//! > a bit complicated for the time being.
template <typename implementation_defined>
struct string {
+ // Default-construct a `hana::string`; no-op since `hana::string` is stateless.
+ constexpr string() = default;
+
+ // Copy-construct a `hana::string`; no-op since `hana::string` is stateless.
+ constexpr string(string const&) = default;
+
//! Equivalent to `hana::equal`
template <typename X, typename Y>
friend constexpr auto operator==(X&& x, Y&& y);