mirror of https://github.com/CGAL/cgal
CGAL_CFG_NO_LONG_DOUBLE_IO is not needed anymore (pgCC is fixed).
This commit is contained in:
parent
f90f3b6627
commit
accdf57415
|
|
@ -1,37 +0,0 @@
|
||||||
// Copyright (c) 2005 INRIA Sophia-Antipolis (France).
|
|
||||||
// All rights reserved.
|
|
||||||
//
|
|
||||||
// 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.
|
|
||||||
//
|
|
||||||
// Licensees holding a valid commercial license may use this file in
|
|
||||||
// accordance with the commercial license agreement provided with the software.
|
|
||||||
//
|
|
||||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|
||||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
//
|
|
||||||
// $URL$
|
|
||||||
// $Id$
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// Author(s) : Sylvain Pion
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------
|
|
||||||
// A short test program to evaluate a machine architecture.
|
|
||||||
// This program is used by install_cgal.
|
|
||||||
// The following documentation will be pasted in the generated configfile.
|
|
||||||
// ---------------------------------------------------------------------
|
|
||||||
|
|
||||||
//| Tests if std::cout supports long double IO.
|
|
||||||
//| pgCC 5.2 and 6.2 have this bug.
|
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
long double ld = 3.14;
|
|
||||||
std::cout << ld << std::endl;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
@ -69,18 +69,6 @@
|
||||||
# define CGAL_USE_LONG_LONG
|
# define CGAL_USE_LONG_LONG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CGAL_CFG_NO_LONG_DOUBLE_IO
|
|
||||||
#include <iostream>
|
|
||||||
namespace std {
|
|
||||||
template < typename _CharT, typename _Traits >
|
|
||||||
inline basic_ostream<_CharT, _Traits> &
|
|
||||||
operator<<(basic_ostream<_CharT, _Traits> & os, const long double &ld)
|
|
||||||
{
|
|
||||||
return os << (double) ld;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CGAL_CFG_TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG
|
#ifndef CGAL_CFG_TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG
|
||||||
# define CGAL_TYPENAME_DEFAULT_ARG typename
|
# define CGAL_TYPENAME_DEFAULT_ARG typename
|
||||||
|
|
|
||||||
|
|
@ -69,9 +69,7 @@ int main()
|
||||||
#endif
|
#endif
|
||||||
TESTIT(float, "float")
|
TESTIT(float, "float")
|
||||||
TESTIT(double, "double")
|
TESTIT(double, "double")
|
||||||
#ifndef CGAL_CFG_NO_LONG_DOUBLE_IO
|
|
||||||
TESTIT(long double, "long double")
|
TESTIT(long double, "long double")
|
||||||
#endif
|
|
||||||
|
|
||||||
// CGAL number types
|
// CGAL number types
|
||||||
//TESTIT(CGAL::MP_Float, "MP_Float")
|
//TESTIT(CGAL::MP_Float, "MP_Float")
|
||||||
|
|
|
||||||
|
|
@ -89,14 +89,10 @@ int main() {
|
||||||
test_io<double>(0);
|
test_io<double>(0);
|
||||||
test_io<double>(-12);
|
test_io<double>(-12);
|
||||||
|
|
||||||
#ifdef CGAL_CFG_NO_LONG_DOUBLE_IO
|
|
||||||
std::cout << "test_io: long double is not performed due to compiler bug"<< std::endl;
|
|
||||||
#else
|
|
||||||
std::cout << "test_io: long double "<< std::endl;
|
std::cout << "test_io: long double "<< std::endl;
|
||||||
test_io<long double>(12);
|
test_io<long double>(12);
|
||||||
test_io<long double>(0);
|
test_io<long double>(0);
|
||||||
test_io<long double>(-12);
|
test_io<long double>(-12);
|
||||||
#endif
|
|
||||||
|
|
||||||
//TODO: add more
|
//TODO: add more
|
||||||
std::cout << "ok" <<std::endl;
|
std::cout << "ok" <<std::endl;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue