phosphor: Migrate builds to C++23

Set -Dcpp_std=c++23 in EXTRA_OEMESON for bmcweb, plugins, pldm,
and dbus-sensors.

Tested:
Verified build with GCC 15 and C++23 across gBMC platforms.
- platform11: http://fusion2/3ff2006d-9c03-3f0c-99fd-bcefc6aaca1f
- platform11: http://fusion2/982d88b5-28f9-38ef-a3a2-d824b919c13c
- platform5: http://fusion2/a7e89bcd-86a0-33b2-8f33-2bb24ef3afb5
- platform15: http://fusion2/e56dcb19-6dcd-35a0-b5ee-30740fbf27df
- platform17: http://fusion2/d0e6af61-eb95-3a70-a6a3-d1bdab987ea2
- platform18: http://fusion2/cda6ba3a-58f5-3907-b584-04786b9fe634
- platform25: http://fusion2/714cc620-6f0a-3bfd-90dd-95356b62b54b
Google-Bug-Id: 482144905
Change-Id: I99a2e4772f9090837eda183dc0238eb5c60bc1d7
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/recipes-phosphor/interfaces/bmcweb_%.bbappend b/recipes-phosphor/interfaces/bmcweb_%.bbappend
index c18ab88..8def322 100644
--- a/recipes-phosphor/interfaces/bmcweb_%.bbappend
+++ b/recipes-phosphor/interfaces/bmcweb_%.bbappend
@@ -3,6 +3,7 @@
 FILESEXTRAPATHS:prepend:gbmc := "${THISDIR}/${PN}:"
 
 EXTRA_OEMESON:append:gbmc = " \
+   -Dcpp_std=c++23 \
    -Dinsecure-disable-auth=enabled \
    -Dinsecure-disable-ssl=enabled \
    -Dhttps_port=80 \
diff --git a/recipes-phosphor/interfaces/gbmcweb-google-common-plugins_git.bb b/recipes-phosphor/interfaces/gbmcweb-google-common-plugins_git.bb
index 6670ecd..990344d 100644
--- a/recipes-phosphor/interfaces/gbmcweb-google-common-plugins_git.bb
+++ b/recipes-phosphor/interfaces/gbmcweb-google-common-plugins_git.bb
@@ -16,6 +16,7 @@
 DEPENDS:append:platforms = " libnvme-vu "
 
 EXTRA_OEMESON:append = " \
+    -Dcpp_std=c++23 \
     -Dgoogle_internal=false \
 "
 
diff --git a/recipes-phosphor/pldm/pldm_%.bbappend b/recipes-phosphor/pldm/pldm_%.bbappend
index d760777..810cde0 100644
--- a/recipes-phosphor/pldm/pldm_%.bbappend
+++ b/recipes-phosphor/pldm/pldm_%.bbappend
@@ -1,7 +1,8 @@
 FILESEXTRAPATHS:prepend:gbmc := "${THISDIR}/${PN}:"
 
 DEPENDS += "libbej"
-
+EXTRA_OEMESON:append = " -Dcpp_std=c++23"
+CXXFLAGS:append = " -Wno-deprecated-declarations"
 SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('EXTRA_FEATURES', 'rde_support', \
 'rded.service', '', d)}"
 
diff --git a/recipes-phosphor/sensors/dbus-sensors_%.bbappend b/recipes-phosphor/sensors/dbus-sensors_%.bbappend
index c13c0b2..4a74819 100644
--- a/recipes-phosphor/sensors/dbus-sensors_%.bbappend
+++ b/recipes-phosphor/sensors/dbus-sensors_%.bbappend
@@ -36,6 +36,8 @@
   file://0001-Add-SkipDbusCreation-support.patch \
 "
 
+EXTRA_OEMESON:append:gbmc = " -Dcpp_std=c++23"
+
 # TODO(linchuyuan@google.com): remove the following section once the upstream has the change
 # b/191874662
 PACKAGECONFIG:append:gbmc = " gpiosensor"