From e52616740ab5a4b3fb6c9b30d394fc93e5550b8b Mon Sep 17 00:00:00 2001 From: Evgeny Malygin Date: Thu, 9 Jan 2025 21:51:03 +0000 Subject: [PATCH] Fix enum templates not compatible with Solaris compiler Signed-off-by: Evgeny Malygin --- src/groups/mqb/mqbstat/mqbstat_brokerstats.h | 12 ++--- src/groups/mqb/mqbstat/mqbstat_clusterstats.h | 12 ++--- src/groups/mqb/mqbstat/mqbstat_domainstats.h | 6 +-- src/groups/mqb/mqbstat/mqbstat_queuestats.h | 45 ++++++++----------- 4 files changed, 29 insertions(+), 46 deletions(-) diff --git a/src/groups/mqb/mqbstat/mqbstat_brokerstats.h b/src/groups/mqb/mqbstat/mqbstat_brokerstats.h index 005e7c018..25feafb83 100644 --- a/src/groups/mqb/mqbstat/mqbstat_brokerstats.h +++ b/src/groups/mqb/mqbstat/mqbstat_brokerstats.h @@ -165,8 +165,7 @@ inline bmqst::StatContext* BrokerStats::statContext() } template <> -inline void -BrokerStats::onEvent() +inline void BrokerStats::onEvent() { BSLS_ASSERT_SAFE(d_statContext_p && "initialize was not called"); @@ -174,8 +173,7 @@ BrokerStats::onEvent() } template <> -inline void -BrokerStats::onEvent() +inline void BrokerStats::onEvent() { BSLS_ASSERT_SAFE(d_statContext_p && "initialize was not called"); @@ -183,8 +181,7 @@ BrokerStats::onEvent() } template <> -inline void -BrokerStats::onEvent() +inline void BrokerStats::onEvent() { BSLS_ASSERT_SAFE(d_statContext_p && "initialize was not called"); @@ -192,8 +189,7 @@ BrokerStats::onEvent() } template <> -inline void -BrokerStats::onEvent() +inline void BrokerStats::onEvent() { BSLS_ASSERT_SAFE(d_statContext_p && "initialize was not called"); diff --git a/src/groups/mqb/mqbstat/mqbstat_clusterstats.h b/src/groups/mqb/mqbstat/mqbstat_clusterstats.h index 3d7d5f78c..1707fb985 100644 --- a/src/groups/mqb/mqbstat/mqbstat_clusterstats.h +++ b/src/groups/mqb/mqbstat/mqbstat_clusterstats.h @@ -418,32 +418,28 @@ inline bmqst::StatContext* ClusterNodeStats::statContext() } template <> -inline void -ClusterNodeStats::onEvent( +inline void ClusterNodeStats::onEvent( BSLS_ANNOTATION_UNUSED bsls::Types::Int64 value) { d_statContext_mp->adjustValue(ClusterNodeStatsIndex::e_STAT_ACK, 1); } template <> -inline void -ClusterNodeStats::onEvent( +inline void ClusterNodeStats::onEvent( BSLS_ANNOTATION_UNUSED bsls::Types::Int64 value) { d_statContext_mp->adjustValue(ClusterNodeStatsIndex::e_STAT_CONFIRM, 1); } template <> -inline void -ClusterNodeStats::onEvent( +inline void ClusterNodeStats::onEvent( bsls::Types::Int64 value) { d_statContext_mp->adjustValue(ClusterNodeStatsIndex::e_STAT_PUSH, value); } template <> -inline void -ClusterNodeStats::onEvent( +inline void ClusterNodeStats::onEvent( bsls::Types::Int64 value) { d_statContext_mp->adjustValue(ClusterNodeStatsIndex::e_STAT_PUT, value); diff --git a/src/groups/mqb/mqbstat/mqbstat_domainstats.h b/src/groups/mqb/mqbstat/mqbstat_domainstats.h index 8f19a4d81..c57ae7bb7 100644 --- a/src/groups/mqb/mqbstat/mqbstat_domainstats.h +++ b/src/groups/mqb/mqbstat/mqbstat_domainstats.h @@ -157,7 +157,7 @@ inline bmqst::StatContext* DomainStats::statContext() } template <> -inline void DomainStats::onEvent( +inline void DomainStats::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -165,7 +165,7 @@ inline void DomainStats::onEvent( } template <> -inline void DomainStats::onEvent( +inline void DomainStats::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -173,7 +173,7 @@ inline void DomainStats::onEvent( } template <> -inline void DomainStats::onEvent( +inline void DomainStats::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); diff --git a/src/groups/mqb/mqbstat/mqbstat_queuestats.h b/src/groups/mqb/mqbstat/mqbstat_queuestats.h index d6fcd8e5b..ad3ae5869 100644 --- a/src/groups/mqb/mqbstat/mqbstat_queuestats.h +++ b/src/groups/mqb/mqbstat/mqbstat_queuestats.h @@ -527,8 +527,7 @@ inline bmqst::StatContext* QueueStatsDomain::statContext() } template <> -inline void -QueueStatsDomain::onEvent( +inline void QueueStatsDomain::onEvent( BSLS_ANNOTATION_UNUSED bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -536,8 +535,7 @@ QueueStatsDomain::onEvent( } template <> -inline void -QueueStatsDomain::onEvent( +inline void QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -545,8 +543,7 @@ QueueStatsDomain::onEvent( } template <> -inline void -QueueStatsDomain::onEvent( +inline void QueueStatsDomain::onEvent( BSLS_ANNOTATION_UNUSED bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -555,8 +552,7 @@ QueueStatsDomain::onEvent( } template <> -inline void -QueueStatsDomain::onEvent( +inline void QueueStatsDomain::onEvent( BSLS_ANNOTATION_UNUSED bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -566,7 +562,7 @@ QueueStatsDomain::onEvent( template <> inline void -QueueStatsDomain::onEvent( +QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -575,8 +571,7 @@ QueueStatsDomain::onEvent( } template <> -inline void -QueueStatsDomain::onEvent( +inline void QueueStatsDomain::onEvent( BSLS_ANNOTATION_UNUSED bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -586,7 +581,7 @@ QueueStatsDomain::onEvent( template <> inline void -QueueStatsDomain::onEvent( +QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -594,8 +589,7 @@ QueueStatsDomain::onEvent( } template <> -inline void -QueueStatsDomain::onEvent( +inline void QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -603,8 +597,7 @@ QueueStatsDomain::onEvent( } template <> -inline void -QueueStatsDomain::onEvent( +inline void QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -613,7 +606,7 @@ QueueStatsDomain::onEvent( template <> inline void -QueueStatsDomain::onEvent( +QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -631,7 +624,7 @@ QueueStatsDomain::onEvent( template <> inline void -QueueStatsDomain::onEvent( +QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -641,7 +634,7 @@ QueueStatsDomain::onEvent( template <> inline void -QueueStatsDomain::onEvent( +QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -649,8 +642,7 @@ QueueStatsDomain::onEvent( } template <> -inline void -QueueStatsDomain::onEvent( +inline void QueueStatsDomain::onEvent( BSLS_ANNOTATION_UNUSED bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -670,7 +662,7 @@ QueueStatsDomain::onEvent( template <> inline void -QueueStatsDomain::onEvent( +QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -678,8 +670,7 @@ QueueStatsDomain::onEvent( } template <> -inline void -QueueStatsDomain::onEvent( +inline void QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -688,7 +679,7 @@ QueueStatsDomain::onEvent( template <> inline void -QueueStatsDomain::onEvent( +QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -697,7 +688,7 @@ QueueStatsDomain::onEvent( template <> inline void -QueueStatsDomain::onEvent( +QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called"); @@ -706,7 +697,7 @@ QueueStatsDomain::onEvent( template <> inline void -QueueStatsDomain::onEvent( +QueueStatsDomain::onEvent( bsls::Types::Int64 value) { BSLS_ASSERT_SAFE(d_statContext_mp && "initialize was not called");