Squashed 'third_party/boostorg/bind/' content from commit d67200b
Change-Id: I21573b0bd786f4e8482a7bb79a73b7574be6bdae
git-subtree-dir: third_party/boostorg/bind
git-subtree-split: d67200bd2a1f67135a4c677636546ec9615e21ea
diff --git a/test/arg_copy_test.cpp b/test/arg_copy_test.cpp
new file mode 100644
index 0000000..b727ce6
--- /dev/null
+++ b/test/arg_copy_test.cpp
@@ -0,0 +1,34 @@
+//
+// arg_copy_test.cpp - copying a custom placeholder _1 to arg<1>
+//
+// Copyright 2016 Peter Dimov
+//
+// 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
+//
+
+#include <boost/is_placeholder.hpp>
+#include <boost/bind/arg.hpp>
+
+//
+
+template<int I> struct ph
+{
+};
+
+namespace boost
+{
+
+template<int I> struct is_placeholder< ::ph<I> >
+{
+ enum _vt { value = I };
+};
+
+} // namespace boost
+
+int main()
+{
+ boost::arg<1> a1 = ph<1>();
+ (void)a1;
+}