cgal/Kernel_23/test/Kernel_23/include/CGAL
Laurent Rineau 269ae1ca61 Fix the uses of std::basic_ios::bad(), and use fail() instead.
bad() implies fail() but std::basic_ios::operator! is actually equivalent
to std::basic_ios::fail(), not bad().

For example,
    std::ifstream is(argv[1]);
    if (is.bad()) {
is probably wrong because, in case the file does not exist, only the failbit it set,
and not the badbit.

Other example:
   double x;
   is >> x;
If the stream 'is' does not contains a string that can represent a double,
then failbit is set (and maybe the eofbit if the stream is actually too
short), but not the badbit.

bad() can be used, in case fail() returned true, to discriminate between a
I/O error and a logical error.

See:
  http://en.cppreference.com/w/cpp/io/basic_ios/operator_bool
  http://en.cppreference.com/w/cpp/io/ios_base/iostate
2013-12-12 16:13:40 +01:00
..
Precise_numbers.h
_Result_of_kernel.h s/boost::result_of/cpp11::result_of/g 2013-03-14 10:38:13 +01:00
_test_2.h
_test_3.h
_test_all_linear_intersections.h rename function in test 2013-09-27 16:09:31 +02:00
_test_angle.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_cls_aff_transformation_2.h
_test_cls_aff_transformation_3.h
_test_cls_circle_2.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_cls_circle_3.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_cls_circle_new_2.h
_test_cls_direction_2.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_cls_direction_3.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_cls_iso_cuboid_3.h add constructor from bbox for iso-cuboid and iso-rectangle 2012-12-20 10:41:23 +01:00
_test_cls_iso_rectangle_2.h add constructor from bbox for iso-cuboid and iso-rectangle 2012-12-20 10:41:23 +01:00
_test_cls_iso_rectangle_new_2.h
_test_cls_kernel.h Restore correct permissions of files 2013-09-24 11:05:57 +02:00
_test_cls_line_2.h
_test_cls_line_3.h less warnings in various packages 2013-02-01 10:27:07 +01:00
_test_cls_line_new_2.h
_test_cls_object.h Remove use.h from Kernel_23/test 2012-08-09 08:48:36 +00:00
_test_cls_plane_3.h
_test_cls_point_2.h
_test_cls_point_3.h
_test_cls_quotient.h
_test_cls_ray_2.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_cls_ray_3.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_cls_ray_new_2.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_cls_segment_2.h
_test_cls_segment_3.h
_test_cls_segment_new_2.h
_test_cls_sphere_3.h
_test_cls_tetrahedron_3.h
_test_cls_triangle_2.h
_test_cls_triangle_3.h
_test_cls_triangle_new_2.h
_test_cls_vector_2.h
_test_cls_vector_3.h
_test_compare_dihedral_angle_3.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_fct_constructions_2.h
_test_fct_constructions_3.h
_test_fct_coplanar_3.h
_test_fct_determinant.h
_test_fct_direction_2.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_fct_line_2.h
_test_fct_plane_3.h
_test_fct_point_2.h
_test_fct_point_3.h less warnings in various packages 2013-02-01 10:27:07 +01:00
_test_fct_point_conversion.h
_test_fct_point_line_2.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_fct_point_segment_2.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_fct_point_vector_2.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_fct_point_vector_3.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_fct_points_implicit_sphere.h replace CGAL_[kernel/qpe/triangulation/]_assertion by assert in tests 2013-03-21 10:50:55 +01:00
_test_fct_segment_2.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_fct_vector_2.h
_test_fct_vector_3.h
_test_further_fct_point_2.h
_test_further_fct_point_line_2.h less warnings in various packages 2013-02-01 10:27:07 +01:00
_test_further_fct_point_plane_3.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_io.h Fix the uses of std::basic_ios::bad(), and use fail() instead. 2013-12-12 16:13:40 +01:00
_test_mf_plane_3_to_2d.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00
_test_new_2.h Remove use.h from Kernel_23/test 2012-08-09 08:48:36 +00:00
_test_new_3.h Remove use.h from Kernel_23/test 2012-08-09 08:48:36 +00:00
_test_orientation_and_bounded_side.h less warnings in the Kernel testsuite 2013-01-31 15:06:04 +01:00