From: Timo Heister Date: Thu, 9 Jul 2015 18:52:28 +0000 (-0400) Subject: move implementation to .cc X-Git-Tag: v8.3.0-rc1~44^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1083%2Fhead;p=dealii.git move implementation to .cc --- diff --git a/include/deal.II/grid/cell_id.h b/include/deal.II/grid/cell_id.h index 7f41b24daf..1ba83286df 100644 --- a/include/deal.II/grid/cell_id.h +++ b/include/deal.II/grid/cell_id.h @@ -20,7 +20,7 @@ #include #include -#include +#include DEAL_II_NAMESPACE_OPEN @@ -136,14 +136,6 @@ inline std::istream &operator>> (std::istream &is, CellId &cid) return is; } -inline std::string -CellId::to_string() const -{ - std::ostringstream ss; - ss << *this; - return ss.str(); -} - inline bool CellId::operator== (const CellId &other) const { diff --git a/source/grid/CMakeLists.txt b/source/grid/CMakeLists.txt index 56841a56f6..88cd15a4c8 100644 --- a/source/grid/CMakeLists.txt +++ b/source/grid/CMakeLists.txt @@ -16,6 +16,7 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR}) SET(_src + cell_id.cc grid_generator.cc grid_in.cc grid_out.cc diff --git a/source/grid/cell_id.cc b/source/grid/cell_id.cc new file mode 100644 index 0000000000..57bd2764af --- /dev/null +++ b/source/grid/cell_id.cc @@ -0,0 +1,30 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2015 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE at +// the top level of the deal.II distribution. +// +// --------------------------------------------------------------------- + +#include + +#include + +DEAL_II_NAMESPACE_OPEN + +std::string +CellId::to_string() const +{ + std::ostringstream ss; + ss << *this; + return ss.str(); +} + +DEAL_II_NAMESPACE_CLOSE