Skip to content

Move deprecation warning outside of include guards#22

Merged
christophfroehlich merged 1 commit intohumblefrom
fix/deprecation-warning
Mar 26, 2026
Merged

Move deprecation warning outside of include guards#22
christophfroehlich merged 1 commit intohumblefrom
fix/deprecation-warning

Conversation

@christophfroehlich
Copy link
Collaborator

I was wondering why custom validators work at all on humble now, as we have merged the change in RSL but haven't redirected to the system header in cpp_polyfills on humble: There are two different versions of the tl_expected header now, and the first one wins:

#include <rsl/parameter_validators.hpp> // this includes <tl/expected.hpp>

#include "example_validators.hpp" // this includes <tl_expected/expected.hpp>

Include guards prevent pulling a different implementation, but as the deprecation warning from #18 is inside the guards the deprecation warning will never be printed in this case.

@christophfroehlich
Copy link
Collaborator Author

@otamachan am I right here?

Copy link
Contributor

@otamachan otamachan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that's correct. LGTM!

@christophfroehlich christophfroehlich merged commit 31f662e into humble Mar 26, 2026
14 checks passed
@christophfroehlich christophfroehlich deleted the fix/deprecation-warning branch March 26, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants