Fixed typo in comment SFINA -> SFINAE

This commit is contained in:
Gaute Lindkvist 2019-12-05 09:37:21 +01:00
parent 7fd4aa1ce9
commit 9c458ec3ba
2 changed files with 2 additions and 2 deletions

View File

@ -1324,7 +1324,7 @@ void RimWellRftPlot::createEnsembleCurveSets()
delete curveSet;
}
// Then add curves for any ensembles we haven't already added
// Then add curve set for any ensembles we haven't already added
for ( RimSummaryCaseCollection* ensemble : rftEnsembles )
{
auto it = std::find_if( m_ensembleCurveSets.begin(),

View File

@ -114,7 +114,7 @@ class PdmOptionItemInfo
public:
// Template pass-through for enum types, ensuring the T type gets cast to an int before storing in the QVariant
// Note the extra dummy parameter. This ensures compilation fails for non-enum types and these variants get removed
// due to SFINA (https://en.wikipedia.org/wiki/Substitution_failure_is_not_an_error)
// due to SFINAE (https://en.wikipedia.org/wiki/Substitution_failure_is_not_an_error)
template<typename T>
PdmOptionItemInfo(const QString& anOptionUiText, T aValue, bool isReadOnly = false, const QIconProvider& anIcon = QIconProvider(), typename std::enable_if<std::is_enum<T>::value>::type* = 0)
: PdmOptionItemInfo(anOptionUiText, QVariant(static_cast<int>(aValue)), isReadOnly, anIcon)