summaryrefslogtreecommitdiff
path: root/libs/type_index/examples/constexpr14_namespace_check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/type_index/examples/constexpr14_namespace_check.cpp')
-rw-r--r--libs/type_index/examples/constexpr14_namespace_check.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/type_index/examples/constexpr14_namespace_check.cpp b/libs/type_index/examples/constexpr14_namespace_check.cpp
index 0752e08074..98a5e40fff 100644
--- a/libs/type_index/examples/constexpr14_namespace_check.cpp
+++ b/libs/type_index/examples/constexpr14_namespace_check.cpp
@@ -1,4 +1,4 @@
-// Copyright 2013-2016 Antony Polukhin
+// Copyright 2013-2017 Antony Polukhin
// Distributed under the Boost Software License, Version 1.0.
// (See the accompanying file LICENSE_1_0.txt
@@ -6,6 +6,10 @@
#include <boost/config.hpp>
+template <class T>
+void do_something(const T&) {}
+
+
#if !defined(BOOST_NO_CXX14_CONSTEXPR) && !defined(BOOST_NO_CXX11_CONSTEXPR)
// Implementation of this function is not essential for the example
template <std::size_t N>
@@ -62,6 +66,7 @@ namespace my_project {
// Actual implementation of the serialization goes below
// ...
+ do_something(value);
}
};