From: wolf Date: Tue, 21 Jan 2003 22:35:17 +0000 (+0000) Subject: Things declared inside an anonymous namespace should also be define X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=620fcf7ac52a9add44fd7058c3b217790cf09866;p=dealii-svn.git Things declared inside an anonymous namespace should also be define inside it, to preserve the internal linkage. git-svn-id: https://svn.dealii.org/trunk@6940 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/data_out_base.cc b/deal.II/base/source/data_out_base.cc index b6d07a6909..425823c4d0 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -3104,45 +3104,47 @@ namespace unsigned int n_cells; unsigned int n_vert; }; -} -inline -TecplotMacros::TecplotMacros(const unsigned int n_nodes, - const unsigned int n_vars, - const unsigned int n_cells, - const unsigned int n_vert) : - n_nodes(n_nodes), - n_vars(n_vars), - n_cells(n_cells), - n_vert(n_vert) -{ - nodalData.resize(n_nodes*n_vars); - connData.resize(n_cells*n_vert); -}; + inline + TecplotMacros::TecplotMacros(const unsigned int n_nodes, + const unsigned int n_vars, + const unsigned int n_cells, + const unsigned int n_vert) : + n_nodes(n_nodes), + n_vars(n_vars), + n_cells(n_cells), + n_vert(n_vert) + { + nodalData.resize(n_nodes*n_vars); + connData.resize(n_cells*n_vert); + } -inline -TecplotMacros::~TecplotMacros() -{ -}; + inline + TecplotMacros::~TecplotMacros() + { + } -inline -float & TecplotMacros::nd(const unsigned int i, const unsigned int j) -{ - return nodalData[(i)*(n_nodes) + (j)]; -}; + inline + float & TecplotMacros::nd(const unsigned int i, const unsigned int j) + { + return nodalData[(i)*(n_nodes) + (j)]; + } -inline -int & TecplotMacros::cd(const unsigned int i, const unsigned int j) -{ - return connData[(i) + (j)*(n_vert)]; -}; + inline + int & TecplotMacros::cd(const unsigned int i, const unsigned int j) + { + return connData[(i) + (j)*(n_vert)]; + } + +} + #endif //--------------------------------------------------------