@@ -312,13 +312,13 @@ public:
* @brief Get current direction of this line.
* @return Current direction setting.
*/
- GPIOD_API int direction(void) const noexcept;
+ GPIOD_API int direction(void) const;
/**
* @brief Get current active state of this line.
* @return Current active state setting.
*/
- GPIOD_API int active_state(void) const noexcept;
+ GPIOD_API int active_state(void) const;
/**
* @brief Check if this line is used by the kernel or other user space
@@ -49,7 +49,7 @@ unsigned int line::offset(void) const
return consumer ? ::std::string(consumer) : ::std::string();
}
-int line::direction(void) const noexcept
+int line::direction(void) const
{
this->throw_if_null();
@@ -58,7 +58,7 @@ int line::direction(void) const noexcept
return dir == GPIOD_LINE_DIRECTION_INPUT ? DIRECTION_INPUT : DIRECTION_OUTPUT;
}
-int line::active_state(void) const noexcept
+int line::active_state(void) const
{
this->throw_if_null();
Both direction and active_state methods can throw and so should not be declared as noexcept. Signed-off-by: Kent Gibson <warthog618@gmail.com> --- bindings/cxx/gpiod.hpp | 4 ++-- bindings/cxx/line.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)