diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-08 14:16:31 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-08 16:15:07 +0100 |
commit | 8e69c9c459600901b998faee80edf654819e2b5b (patch) | |
tree | aee97c616eb6b0c760d9edf01919db1437082b50 /lib/dbTypes.h | |
parent | Extract WritePqCopyStrm into its own file (diff) | |
download | mygrate-8e69c9c459600901b998faee80edf654819e2b5b.tar.bz2 mygrate-8e69c9c459600901b998faee80edf654819e2b5b.tar.xz mygrate-8e69c9c459600901b998faee80edf654819e2b5b.zip |
Simplify some bits with concepts
Diffstat (limited to 'lib/dbTypes.h')
-rw-r--r-- | lib/dbTypes.h | 3 |
1 files changed, 1 insertions, 2 deletions
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<HasToString I> std::string - operator()(const I & i) const + operator()(const HasToString auto & i) const { return std::to_string(i); } |