diff --git a/Number_types/include/CGAL/leda_rational.h b/Number_types/include/CGAL/leda_rational.h index 2831952805d..f242f7637bd 100644 --- a/Number_types/include/CGAL/leda_rational.h +++ b/Number_types/include/CGAL/leda_rational.h @@ -280,17 +280,17 @@ public: }; - namespace internal { - template - void read_float_or_quotient(std::istream & is, ET& et); +namespace internal { + // See: Stream_support/include/CGAL/IO/io.h + template + void read_float_or_quotient(std::istream & is, ET& et); - template <> - void read_float_or_quotient(std::istream & is, leda_rational& et) - { - internal::read_float_or_quotient(is, et); - } + template <> + inline void read_float_or_quotient(std::istream & is, leda_rational& et) + { + internal::read_float_or_quotient(is, et); } - +} // namespace internal } //namespace CGAL diff --git a/Stream_support/include/CGAL/IO/io.h b/Stream_support/include/CGAL/IO/io.h index 46ef5bf3d80..26e2ac5e00c 100644 --- a/Stream_support/include/CGAL/IO/io.h +++ b/Stream_support/include/CGAL/IO/io.h @@ -419,7 +419,7 @@ void eat_white_space(std::istream &is) template -void read_float_or_quotient(std::istream & is, ET& et) +inline void read_float_or_quotient(std::istream & is, ET& et) { is >> et; } @@ -427,7 +427,7 @@ void read_float_or_quotient(std::istream & is, ET& et) template -void read_float_or_quotient(std::istream& is, Rat &z) +inline void read_float_or_quotient(std::istream& is, Rat &z) { // reads rational and floating point literals. const std::istream::char_type zero = '0'; diff --git a/Surface_mesh/examples/Surface_mesh/CMakeLists.txt b/Surface_mesh/examples/Surface_mesh/CMakeLists.txt index 78fcdd70447..d8b3eeaba36 100644 --- a/Surface_mesh/examples/Surface_mesh/CMakeLists.txt +++ b/Surface_mesh/examples/Surface_mesh/CMakeLists.txt @@ -17,7 +17,6 @@ if ( CGAL_FOUND ) include_directories (BEFORE "../../include") - create_single_source_cgal_program( "read.cpp" ) create_single_source_cgal_program( "sm_join.cpp" ) create_single_source_cgal_program( "sm_aabbtree.cpp" ) create_single_source_cgal_program( "sm_bgl.cpp" )