From 8e69c9c459600901b998faee80edf654819e2b5b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Aug 2021 14:16:31 +0100 Subject: Simplify some bits with concepts --- lib/dbTypes.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/dbTypes.h') diff --git a/lib/dbTypes.h b/lib/dbTypes.h index 42b242b..31793e4 100644 --- a/lib/dbTypes.h +++ b/lib/dbTypes.h @@ -107,9 +107,8 @@ namespace MyGrate { return std::string {i}; } - template std::string - operator()(const I & i) const + operator()(const HasToString auto & i) const { return std::to_string(i); } -- cgit v1.2.3