Skip to content

Commit

Permalink
Use a more compact namespace block for the magic_enum forward declara…
Browse files Browse the repository at this point in the history
…tion

Signed-off-by: Dom Del Nano <[email protected]>
  • Loading branch information
ddelnano committed Dec 6, 2024
1 parent 6d17ce6 commit a9e7bfe
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,11 @@
#include "src/stirling/source_connectors/socket_tracer/protocols/common/event_parser.h"
#include "src/stirling/utils/utils.h"

namespace px {
namespace stirling {
namespace protocols {
namespace tls {

namespace px::stirling::protocols::tls {
// Forward declaration so enum_range can be specialized.
enum class LegacyVersion : uint16_t;

} // namespace tls
} // namespace protocols
} // namespace stirling
} // namespace px
} // namespace px::stirling::protocols::tls

template <>
struct magic_enum::customize::enum_range<px::stirling::protocols::tls::LegacyVersion> {
Expand Down

0 comments on commit a9e7bfe

Please sign in to comment.