Skip to content

Commit e7ee292

Browse files
Fix constexpr declaration/definition mismatches in ada.h
The declarations for get_href() and set_protocol_as_file() were still marked constexpr while their definitions were changed to inline. Fix the declarations to also use inline. Co-Authored-By: Claude (global.anthropic.claude-opus-4-5-20251101-v1:0) <noreply@anthropic.com>
1 parent 75a14c0 commit e7ee292

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

deps/ada/ada.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6988,7 +6988,7 @@ struct url_aggregator : url_base {
69886988
* @see https://url.spec.whatwg.org/#dom-url-href
69896989
* @see https://url.spec.whatwg.org/#concept-url-serializer
69906990
*/
6991-
[[nodiscard]] constexpr std::string_view get_href() const noexcept
6991+
[[nodiscard]] inline std::string_view get_href() const noexcept
69926992
ada_lifetime_bound;
69936993
/**
69946994
* The username getter steps are to return this's URL's username.
@@ -7245,7 +7245,7 @@ struct url_aggregator : url_base {
72457245
ada_really_inline uint32_t replace_and_resize(uint32_t start, uint32_t end,
72467246
std::string_view input);
72477247
[[nodiscard]] constexpr bool has_authority() const noexcept;
7248-
constexpr void set_protocol_as_file();
7248+
inline void set_protocol_as_file();
72497249
inline void set_scheme(std::string_view new_scheme) noexcept;
72507250
/**
72517251
* Fast function to set the scheme from a view with a colon in the

0 commit comments

Comments
 (0)