From f74762ae4ee8c25818298337ab8ac031905609c2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 May 2019 22:40:58 -0400 Subject: [PATCH] frontend/decoder/decoder_detail: Replace std::is_same, with std::is_same_v Same thing, same readability, less characters. --- src/frontend/decoder/decoder_detail.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/decoder/decoder_detail.h b/src/frontend/decoder/decoder_detail.h index 4a319ca8..dcba0fb8 100644 --- a/src/frontend/decoder/decoder_detail.h +++ b/src/frontend/decoder/decoder_detail.h @@ -115,7 +115,7 @@ private: CallRetT (Visitor::* const fn)(Args...), const std::array arg_masks, const std::array arg_shifts) { - static_assert(std::is_same::value, "Member function is not from Matcher's Visitor"); + static_assert(std::is_same_v, "Member function is not from Matcher's Visitor"); return [fn, arg_masks, arg_shifts](Visitor& v, opcode_type instruction) { (void)instruction; (void)arg_masks; @@ -132,7 +132,7 @@ private: CallRetT (Visitor::* const fn)(Args...) const, const std::array arg_masks, const std::array arg_shifts) { - static_assert(std::is_same::value, "Member function is not from Matcher's Visitor"); + static_assert(std::is_same_v, "Member function is not from Matcher's Visitor"); return [fn, arg_masks, arg_shifts](const Visitor& v, opcode_type instruction) { (void)instruction; (void)arg_masks;