diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 20:23:44 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 20:23:44 +1000 |
commit | 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 (patch) | |
tree | fd9c441b796b522bdd5c7f8fbd32f51b8eff2a28 /source/core/StarMultiArray.hpp | |
parent | 14b9689b6d4f4ad5276c88130dc6e449bedc0709 (diff) |
The Formatting String Catastrophe
Diffstat (limited to 'source/core/StarMultiArray.hpp')
-rw-r--r-- | source/core/StarMultiArray.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/StarMultiArray.hpp b/source/core/StarMultiArray.hpp index f2cf155..3668c8a 100644 --- a/source/core/StarMultiArray.hpp +++ b/source/core/StarMultiArray.hpp @@ -291,7 +291,7 @@ template <typename Element, size_t Rank> Element const& MultiArray<Element, Rank>::at(IndexArray const& index) const { for (size_t i = Rank; i != 0; --i) { if (index[i - 1] >= m_shape[i - 1]) - throw MultiArrayException(strf("Out of bounds on MultiArray::at(%s)", index)); + throw MultiArrayException(strf("Out of bounds on MultiArray::at({})", index)); } return m_data[storageIndex(index)]; @@ -301,7 +301,7 @@ template <typename Element, size_t Rank> Element& MultiArray<Element, Rank>::at(IndexArray const& index) { for (size_t i = Rank; i != 0; --i) { if (index[i - 1] >= m_shape[i - 1]) - throw MultiArrayException(strf("Out of bounds on MultiArray::at(%s)", index)); + throw MultiArrayException(strf("Out of bounds on MultiArray::at({})", index)); } return m_data[storageIndex(index)]; @@ -323,7 +323,7 @@ template <typename Element, size_t Rank> void MultiArray<Element, Rank>::set(IndexArray const& index, Element element) { for (size_t i = Rank; i != 0; --i) { if (index[i - 1] >= m_shape[i - 1]) - throw MultiArrayException(strf("Out of bounds on MultiArray::set(%s)", index)); + throw MultiArrayException(strf("Out of bounds on MultiArray::set({})", index)); } m_data[storageIndex(index)] = move(element); |