From fbdec2315577e33a014b05da15f01af4c81c90a8 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Mon, 22 May 2017 13:53:48 +0200 Subject: [PATCH] inline functions --- Stream_support/include/CGAL/IO/io.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Stream_support/include/CGAL/IO/io.h b/Stream_support/include/CGAL/IO/io.h index 310bdfa6818..4d93ed934ec 100644 --- a/Stream_support/include/CGAL/IO/io.h +++ b/Stream_support/include/CGAL/IO/io.h @@ -69,35 +69,35 @@ public: } -std::ios& off(std::ios& os) +inline std::ios& off(std::ios& os) { os.iword(IO::Static::get_file_format()) = IO::OFF; return os; } -std::ios& ply(std::ios& os) +inline std::ios& ply(std::ios& os) { os.iword(IO::Static::get_file_format()) = IO::PLY; return os; } -std::ios& obj(std::ios& os) +inline std::ios& obj(std::ios& os) { os.iword(IO::Static::get_file_format()) = IO::OBJ; return os; } -std::ios& stl(std::ios& os) +inline std::ios& stl(std::ios& os) { os.iword(IO::Static::get_file_format()) = IO::STL; return os; } - IO::File_format file_format(std::ios& os) - { - return static_cast(os.iword(IO::Static::get_file_format())); - } +inline IO::File_format file_format(std::ios& os) +{ + return static_cast(os.iword(IO::Static::get_file_format())); +} template