Skip to content
Snippets Groups Projects
Commit 1b5a3f36 authored by Markus Blatt's avatar Markus Blatt
Browse files

[MERGE] Removed unnecessary template argument (Patch 7108 from trunk

in dune/common/share_ptr.hh the constructor of SharedCount is defined to be a template. However, the template argument is never used. This template argument was now dropped.

Patch kindly provided by Olaf Ippisch


[[Imported from SVN: r7109]]
parents 02b3f95a feba789e
Branches
Tags
No related merge requests found
......@@ -12,7 +12,7 @@ Copyright holders:
2005--2010 Carsten Gräser
2010--2012 Christoph Grüninger
2006 Bernhard Haasdonk
2012 Olaf Ippisch
2012--2013 Olaf Ippisch
2009 Leonard Kern
2005--2007 Sreejith Pulloor Kuttanikkad
2003--2012 Robert Klöfkorn
......
......@@ -214,14 +214,14 @@ namespace Dune
#endif
template<class T>
ParallelLocalIndex<T>::ParallelLocalIndex(const T& attribute, bool isPublic)
ParallelLocalIndex<T>::ParallelLocalIndex(const Attribute& attribute, bool isPublic)
: localIndex_(0), attribute_(static_cast<char>(attribute)),
public_(static_cast<char>(isPublic)), state_(static_cast<char>(VALID))
{}
template<class T>
ParallelLocalIndex<T>::ParallelLocalIndex(size_t local, const T& attribute, bool isPublic)
ParallelLocalIndex<T>::ParallelLocalIndex(size_t local, const Attribute& attribute, bool isPublic)
: localIndex_(local), attribute_(static_cast<char>(attribute)),
public_(static_cast<char>(isPublic)), state_(static_cast<char>(VALID))
{}
......
......@@ -45,7 +45,6 @@ namespace Dune
/** @brief Constructor from existing Pointer. */
SharedCount() : count_(1) {}
/** @brief Copy constructor with type conversion. */
template<class T1>
SharedCount(const SharedCount& rep)
: count_(rep.count_) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment