]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/parameter/test/literate/parameter-enabled-member-functions0.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / parameter / test / literate / parameter-enabled-member-functions0.cpp
index 45690eb3b85075b1540fdc758ccda64adf6fedd2..04eecbf1bdafd5331c9a4db3bbe2517a951d3da5 100644 (file)
@@ -1,15 +1,29 @@
 
 #include <boost/parameter.hpp>
 #include <iostream>
+
 using namespace boost::parameter;
+
 BOOST_PARAMETER_NAME(arg1)
 BOOST_PARAMETER_NAME(arg2)
 
 struct callable2
 {
     BOOST_PARAMETER_CONST_MEMBER_FUNCTION(
-        (void), call, tag, (required (arg1,(int))(arg2,(int))))
+        (void), call, tag, (required (arg1,(int))(arg2,(int)))
+    )
     {
         std::cout << arg1 << ", " << arg2 << std::endl;
     }
 };
+
+#include <boost/core/lightweight_test.hpp>
+
+int main()
+{
+    callable2 c2;
+    callable2 const& c2_const = c2;
+    c2_const.call(1, 2);
+    return boost::report_errors();
+}
+