Skip to content
Snippets Groups Projects
Commit 28434bd9 authored by Timo Koch's avatar Timo Koch
Browse files

[vtk] Use std::string_view

parent b817dbd6
No related branches found
No related tags found
1 merge request!1838Fix/vtkoutput constructor
...@@ -47,10 +47,8 @@ using Dune::VTK::Precision; ...@@ -47,10 +47,8 @@ using Dune::VTK::Precision;
/*! /*!
* \ingroup InputOutput * \ingroup InputOutput
* \brief Maps a string (e.g. from input) to a Dune precision type * \brief Maps a string (e.g. from input) to a Dune precision type
*
* \param precisionName string, e.g. from input-file
*/ */
inline Precision stringToPrecision(std::string precisionName) inline Precision stringToPrecision(std::string_view precisionName)
{ {
// this should really be constexpr but GCC <= 7.2 has a bug which // this should really be constexpr but GCC <= 7.2 has a bug which
// doesn't allow string_view to be constexpr // doesn't allow string_view to be constexpr
......
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