Commit 154bd7b2 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Remove warnings about to_true_type struct

parent cba68bc5
Pipeline #38145 passed with stage
in 2 minutes and 32 seconds
......@@ -186,21 +186,27 @@ namespace Dune::Logging {
std::enable_if_t<not is_format_string_v<FS>>
operator()(FS format, Args&&... args) const
{
static_assert(not Std::to_true_type_v<FS>,"You need to tag your format string with the user defined literal suffix _fmt");
static_assert(Dune::AlwaysFalse<FS>{},
"You need to tag your format string with the user defined "
"literal suffix _fmt");
}
template<typename FS, typename... Args>
std::enable_if_t<not is_format_string_v<FS>>
operator()(LogLevel level, FS format, Args&&... args) const
{
static_assert(not Std::to_true_type_v<FS>,"You need to tag your format string with the user defined literal suffix _fmt");
static_assert(Dune::AlwaysFalse<FS>{},
"You need to tag your format string with the user defined "
"literal suffix _fmt");
}
template<typename FS, typename... Args>
std::enable_if_t<not is_format_string_v<FS>>
operator()(LogLevel level, int indent, FS format, Args&&... args) const
{
static_assert(not Std::to_true_type_v<FS>,"You need to tag your format string with the user defined literal suffix _fmt");
static_assert(Dune::AlwaysFalse<FS>{},
"You need to tag your format string with the user defined "
"literal suffix _fmt");
}
#endif // DOXYGEN
......
......@@ -5,13 +5,5 @@
#define DUNE_LOGGING_TYPE_TRAITS_HH
#include <dune/common/typetraits.hh>
#include <dune/common/std/type_traits.hh>
namespace Dune::Std {
template <typename T>
constexpr bool to_true_type_v = to_true_type<T>::value;
} // end namespace Dune::Std
#endif // DUNE_LOGGING_TYPE_TRAITS_HH
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment