From 087aa2c714ba97815af67157e9b76c8b49413eda Mon Sep 17 00:00:00 2001 From: Myles Busig Date: Tue, 18 Feb 2025 04:23:30 -0800 Subject: [PATCH] Make some fractal::generator functions noexcept (simple sets, etc) --- include/fractal.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fractal.hpp b/include/fractal.hpp index 82177ec..ec3b0ce 100644 --- a/include/fractal.hpp +++ b/include/fractal.hpp @@ -117,7 +117,7 @@ public: /** * Default constructor */ - generator_t() : + generator_t() noexcept : m_leafs_cur(&m_leaf_buf1), m_leafs_next(&m_leaf_buf2), m_axiom(0), @@ -274,13 +274,13 @@ public: * * @param position The initial position to use. */ - void set_initial_position(mtl::vec2 position); + void set_initial_position(mtl::vec2 position) noexcept; /** * @brief Set the initial orientation the axiom is generated in. * * @param orientation The initial orientation to use. Given in radians. */ - void set_initial_orientation(mtl::fixed orientation); + void set_initial_orientation(mtl::fixed orientation) noexcept; /** * @brief Steps one generation in the fractal, generating a vector of markers.