]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/spirit/test/x3/confix.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / spirit / test / x3 / confix.cpp
index 9bace843ee8ce61f5a8b5d6621a8d010d9ada5a0..40bce11b4bdf4d2afefc229d6e674d6f252e1a9c 100644 (file)
@@ -35,8 +35,9 @@ int main()
                 test_attr(" /* 123 */ ", comment[x3::uint_], value, x3::space));
             BOOST_TEST(value == 123);
 
+            using x3::_attr;
             value = 0;
-            const auto lambda = [&value](auto& ctx ){ value = x3::_attr(ctx) + 1; };
+            const auto lambda = [&value](auto& ctx ){ value = _attr(ctx) + 1; };
             BOOST_TEST(test_attr("/*123*/", comment[x3::uint_][lambda], value));
             BOOST_TEST(value == 124);
         }