You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CBD-6348: [BP] Add missing formattors for enum classes
This is a cherry-pick from trinity (MB-51719)
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/+/234744
Well-Formed: Restriction Checker
Tested-by: Trond Norbye <[email protected]>
Reviewed-by: Jim Walker <[email protected]>
0 commit comments