Skip to content

Commit

Permalink
Update to C++23 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
chronoxor committed Oct 29, 2023
1 parent e70bb05 commit 17c3343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/logging/appenders/rolling_file_appender.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class RollingFileAppender : public Appender

static const size_t StorageSize = 544;
static const size_t StorageAlign = 8;
std::aligned_storage<StorageSize, StorageAlign>::type _storage;
alignas(StorageAlign) std::byte _storage[StorageSize];
};

} // namespace CppLogging
Expand Down
2 changes: 1 addition & 1 deletion include/logging/layouts/text_layout.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class TextLayout : public Layout

static const size_t StorageSize = 72;
static const size_t StorageAlign = 8;
std::aligned_storage<StorageSize, StorageAlign>::type _storage;
alignas(StorageAlign) std::byte _storage[StorageSize];
};

} // namespace CppLogging
Expand Down

0 comments on commit 17c3343

Please sign in to comment.