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
Since C++20, the <format> STL functionality was introduced to improve string formatting:
more readable
less use of std::to_string (only when strictly necessary)
no unnecessary copying between stack and heap
This issue is about replacing the current PowerGridError and derived exceptions' constructor implementations with more readable patterns using formatted strings.
For static format patterns, std::format can be used
For format patterns that are not compile-time known, std::formatv needs to be used
The documentation on either is relatively clear, so it should not be a hard ticket to pick up.
The text was updated successfully, but these errors were encountered:
Describe the feature request
Since
C++20
, the<format>
STL functionality was introduced to improve string formatting:std::to_string
(only when strictly necessary)This issue is about replacing the current
PowerGridError
and derived exceptions' constructor implementations with more readable patterns using formatted strings.std::format
can be usedstd::formatv
needs to be usedThe documentation on either is relatively clear, so it should not be a hard ticket to pick up.
The text was updated successfully, but these errors were encountered: