X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fgeometry%2Ftest%2Fgeometries%2Fpoint_xyz.cpp;h=00dcc0fd6dca73ecee6b7ebb8f3ed80cd890a257;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=f52484a2a5e729672f344f0a9bd8e5181d97fc31;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/libs/geometry/test/geometries/point_xyz.cpp b/ceph/src/boost/libs/geometry/test/geometries/point_xyz.cpp index f52484a2a..00dcc0fd6 100644 --- a/ceph/src/boost/libs/geometry/test/geometries/point_xyz.cpp +++ b/ceph/src/boost/libs/geometry/test/geometries/point_xyz.cpp @@ -3,6 +3,10 @@ // Copyright (c) 2020 Digvijay Janartha, Hamirpur, India. +// This file was modified by Oracle on 2020. +// Modifications copyright (c) 2020, Oracle and/or its affiliates. +// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle + // Use, modification and distribution is subject to 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) @@ -61,12 +65,23 @@ void test_copy_assignment() check_point_xyz(p, 4, 5, 6); } +template +void test_constexpr() +{ + typedef bg::model::d3::point_xyz P; + constexpr P p = P(1, 2, 3); + constexpr T c = bg::get<0>(p); + BOOST_CHECK_EQUAL(c, 1); + check_point_xyz(p, 1, 2, 3); +} + template void test_all() { test_default_constructor(); test_copy_constructor(); test_copy_assignment(); + test_constexpr(); } int test_main(int, char* [])