-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-51719: Add missing formattors for enum classes
Upgrading to fmtlib 8.1.1 removed support for implicitly converting strongly-typed enums (enum class) to int when printing via fmtlib - see fmtlib/fmt#1841 This is considered a bug by fmtlib, as strongly-typed enums should be treated as such - to print them either provide a formatter, or cast to their underlying type. This highlighted that we had missed a number of operator<< overloads for custom enum classes - and one instance where our operator<< was not used as we were missing an include of <fmt/ostream.h> Change-Id: If0f4e19f3eff4ebf4b4e3ccec1f0815c794a709b Reviewed-on: https://review.couchbase.org/c/kv_engine/+/173823 Tested-by: Build Bot <[email protected]> Reviewed-by: Trond Norbye <[email protected]>
- Loading branch information
Showing
6 changed files
with
52 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters