Skip to content
Snippets Groups Projects
Commit fd107221 authored by Adrian Burri's avatar Adrian Burri
Browse files

Some cleanup after the string conversion

[[Imported from SVN: r2044]]
parent c2c4c388
No related branches found
No related tags found
No related merge requests found
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2: // vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_DYNAMICTYPE_HH__ #ifndef DUNE_DYNAMICTYPE_HH
#define __DUNE_DYNAMICTYPE_HH__ #define DUNE_DYNAMICTYPE_HH
#include <assert.h> #include <cassert>
//#include <iostream>
namespace Dune { namespace Dune {
...@@ -37,6 +38,7 @@ namespace Dune { ...@@ -37,6 +38,7 @@ namespace Dune {
//! return identifier //! return identifier
IdentifierType getIdentifier() const IdentifierType getIdentifier() const
{ {
//std::cout << "Id: " << identifier_ << "(" << undefined << ")" << std::endl;
assert(identifier_ != undefined); assert(identifier_ != undefined);
return identifier_; return identifier_;
} }
......
...@@ -472,13 +472,12 @@ namespace Dune { ...@@ -472,13 +472,12 @@ namespace Dune {
//===== assignment from scalar //===== assignment from scalar
//! Assignment operator for scalar //! Assignment operator for scalar
FieldVector& operator= (const K& k) const FieldVector& operator= (const K& k)
{ {
fvmeta_assignscalar<n-1>::assignscalar(*this,k); fvmeta_assignscalar<n-1>::assignscalar(*this,k);
return *this; return *this;
} }
//===== access to components //===== access to components
//! random access //! random access
......
...@@ -40,7 +40,10 @@ namespace Dune { ...@@ -40,7 +40,10 @@ namespace Dune {
// //
//******************************************************************** //********************************************************************
inline std::basic_string<char> genFilename(std::basic_string <char> path, std::basic_string <char> fn, int ntime, int precision = 6) inline std::string genFilename(const std::string& path,
const std::string& fn,
int ntime,
int precision = 6)
{ {
std::ostringstream name; std::ostringstream name;
...@@ -72,7 +75,7 @@ namespace Dune { ...@@ -72,7 +75,7 @@ namespace Dune {
name << cp; name << cp;
// here implicitly a string is generated // here implicitly a string is generated
return name.str().c_str(); return name.str();
} }
/** @} */ /** @} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment