Skip to content

Commit

Permalink
fix build with Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfer committed Nov 23, 2023
1 parent 62df559 commit 34161fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/TFEL/Utilities/GenTypeSpecialisation.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* \param const X&, the source \
*/ \
TFEL_INLINE void set##Y(const X& src) { \
static_cast<Child*>(this)->template set<X>(src); \
static_cast<Child*>(this)->template set<const X&>(src); \
} \
/* \
* get an object of type X. \
Expand Down Expand Up @@ -82,7 +82,7 @@ namespace tfel::utilities::internals {
* \param const std::string&, the source
*/
TFEL_INLINE void setString(const std::string& src) {
static_cast<Child*>(this)->template set<std::string>(src);
static_cast<Child*>(this)->template set<const std::string&>(src);
}
/*
* get an object of type std::string.
Expand Down

0 comments on commit 34161fb

Please sign in to comment.