diff options
| author | Egor Tensin <egor@tensin.name> | 2026-07-25 10:39:53 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-07-25 10:39:53 +0200 |
| commit | dd88c0084133d296a42b62c745874b75e4503e70 (patch) | |
| tree | 4730b6f9753c7ee5676faf048858576ae5ccf32f /aesxx/utils/helpers/file.hpp | |
| parent | aesxx/block: refactoring (diff) | |
| download | aes-tools-dd88c0084133d296a42b62c745874b75e4503e70.tar.gz aes-tools-dd88c0084133d296a42b62c745874b75e4503e70.zip | |
aesxx: typedef -> using
Diffstat (limited to 'aesxx/utils/helpers/file.hpp')
| -rw-r--r-- | aesxx/utils/helpers/file.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aesxx/utils/helpers/file.hpp b/aesxx/utils/helpers/file.hpp index 5840de8..dee0f62 100644 --- a/aesxx/utils/helpers/file.hpp +++ b/aesxx/utils/helpers/file.hpp @@ -17,7 +17,7 @@ namespace file { inline std::size_t cast_to_size_t(std::streamoff size) { if (size < 0) throw std::range_error{"file::cast_to_size_t: something went really wrong"}; - typedef std::make_unsigned<std::streamoff>::type unsigned_streamoff; + using unsigned_streamoff = std::make_unsigned<std::streamoff>::type; if (static_cast<unsigned_streamoff>(size) > std::numeric_limits<std::size_t>::max()) throw std::range_error{"file::cast_to_size_t: this file is too large"}; return static_cast<std::size_t>(size); |
