mirror of https://github.com/CGAL/cgal
34 lines
1.2 KiB
C++
34 lines
1.2 KiB
C++
// Copyright (c) 2015 GeometryFactory (France). All rights reserved.
|
|
// All rights reserved.
|
|
//
|
|
// Licensees holding a valid commercial license may use this file in
|
|
// accordance with the commercial license agreement provided with the software.
|
|
//
|
|
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
|
// modify it under the terms of the GNU Lesser General Public License as
|
|
// published by the Free Software Foundation; version 2.1 of the License.
|
|
// See the file LICENSE.LGPL distributed with CGAL.
|
|
//
|
|
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
//
|
|
// Author(s) : Philipp Moeller
|
|
|
|
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
|
#include <cstdlib>
|
|
|
|
// Make sure squared_radius can be called through ADL without
|
|
// triggering an access checking hard error when one of the
|
|
// internal::squared_radius functions is instantiated. This issue only
|
|
// shows up on clang with std=c++03 (the default).See
|
|
// https://github.com/CGAL/cgal/issues/129
|
|
|
|
int main()
|
|
{
|
|
try {
|
|
CGAL::Point_3<CGAL::Epick> a, b, c, d;
|
|
CGAL::squared_radius(a, b, c, d);
|
|
} catch(...) {}
|
|
return EXIT_SUCCESS;
|
|
}
|