Repository navigation
fix(build): include <stdexcept> for std::runtime_error - #1
Merged
Merged
Conversation
common.h throws std::runtime_error but relied on another standard header to declare it. GCC 15 no longer pulls it in transitively, so the addon fails to build with "'runtime_error' is not a member of 'std'".
AlexanderSlaa
left a comment
Contributor
There was a problem hiding this comment.
Thanks for your contribution!
Verified. On main, compiling src/*.cpp with GCC 15.3 (gcc:15 image) fails with exactly the error in the description. With this change every source file compiles cleanly with -Wall -Wextra -Wpedantic.
The other open PRs (#2–#6) also only compile on GCC 15 once this include is in, so this one should land first.
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 21, 2026
# [1.1.0](v1.0.3...v1.1.0) (2026-11-21) ### Bug Fixes * **build:** include <stdexcept> for std::runtime_error ([#1](#1)) ([0d44095](0d44095)) * **rados:** refuse io context setting changes while operations are in flight ([#2](#2)) ([dd3f83b](dd3f83b)) ### Features * name the errno of a CephError in codeName ([#5](#5)) ([ff3568d](ff3568d))
|
🎉 This PR is included in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/common.hthrowsstd::runtime_errorbut never includes<stdexcept>. Older GCC versions pull it in through another header, but GCC 15 doesn't, so the build fails:Seen on Ubuntu with GCC 15.2. The fix is a single include.