feat: deprecation messages now provide the release version where the deprecation happened

This commit is contained in:
Mateusz Pusz
2025-02-11 10:07:34 +01:00
parent ea06827f27
commit fa482c9246
10 changed files with 64 additions and 53 deletions
@@ -27,62 +27,72 @@
MP_UNITS_EXPORT
namespace mp_units::iec {
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto dim_traffic_intensity =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto dim_traffic_intensity =
isq::dim_traffic_intensity;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto traffic_intensity =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto traffic_intensity =
isq::traffic_intensity;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto traffic_offered_intensity =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto traffic_offered_intensity =
isq::traffic_offered_intensity;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto traffic_carried_intensity =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto traffic_carried_intensity =
isq::traffic_carried_intensity;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto traffic_load =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto traffic_load =
isq::traffic_carried_intensity;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto mean_queue_length =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto mean_queue_length =
isq::mean_queue_length;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto loss_probability =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto loss_probability =
isq::loss_probability;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto waiting_probability =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto waiting_probability =
isq::waiting_probability;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto call_intensity = isq::call_intensity;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto calling_rate = isq::call_intensity;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto completed_call_intensity =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto call_intensity =
isq::call_intensity;
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto calling_rate =
isq::call_intensity;
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto completed_call_intensity =
isq::completed_call_intensity;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto storage_capacity =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto storage_capacity =
isq::storage_capacity;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto storage_size = isq::storage_capacity;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto equivalent_binary_storage_capacity =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto storage_size =
isq::storage_capacity;
[[deprecated(
"2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto equivalent_binary_storage_capacity =
isq::equivalent_binary_storage_capacity;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto transfer_rate = isq::transfer_rate;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto period_of_data_elements =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto transfer_rate =
isq::transfer_rate;
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto period_of_data_elements =
isq::period_of_data_elements;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto binary_digit_rate =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto binary_digit_rate =
isq::binary_digit_rate;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto bit_rate = isq::binary_digit_rate;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto period_of_binary_digits =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto bit_rate =
isq::binary_digit_rate;
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto period_of_binary_digits =
isq::period_of_binary_digits;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto bit_period =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto bit_period =
isq::period_of_binary_digits;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto equivalent_binary_digit_rate =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto equivalent_binary_digit_rate =
isq::equivalent_binary_digit_rate;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto equivalent_bit_rate = isq::bit_rate;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto modulation_rate =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto equivalent_bit_rate =
isq::bit_rate;
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto modulation_rate =
isq::modulation_rate;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto line_digit_rate =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto line_digit_rate =
isq::modulation_rate;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto quantizing_distortion_power =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto quantizing_distortion_power =
isq::quantizing_distortion_power;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto carrier_power = isq::carrier_power;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto signal_energy_per_binary_digit =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto carrier_power =
isq::carrier_power;
[[deprecated(
"2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto signal_energy_per_binary_digit =
isq::signal_energy_per_binary_digit;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto error_probability =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto error_probability =
isq::error_probability;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto Hamming_distance =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto Hamming_distance =
isq::Hamming_distance;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto clock_frequency =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto clock_frequency =
isq::clock_frequency;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto clock_rate = isq::clock_frequency;
[[deprecated("Quantity type moved to the `isq` namespace")]] inline constexpr auto decision_content =
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto clock_rate =
isq::clock_frequency;
[[deprecated("2.4.0: Quantity type moved to the `isq` namespace")]] inline constexpr auto decision_content =
isq::decision_content;
} // namespace mp_units::iec
@@ -29,9 +29,9 @@
namespace mp_units {
MP_UNITS_EXPORT
namespace [[deprecated("Use `mp_units::iec` namespace from iec.h instead")]] iec80000 {
namespace [[deprecated("2.3.0: Use `mp_units::iec` namespace from iec.h instead")]] iec80000 {
namespace [[deprecated("Use `mp_units::iec::unit_symbols` namespace from iec.h instead")]] unit_symbols {
namespace [[deprecated("2.3.0: Use `mp_units::iec::unit_symbols` namespace from iec.h instead")]] unit_symbols {
using namespace iec::unit_symbols;