Skip to content

Conversation

@alef
Copy link
Contributor

@alef alef commented Jan 7, 2026

As suggested by @akrieger

Summary

None

Purpose of change

Alternative solution to the clang20 error fixed by #84404

Describe the solution

See the patch

Describe alternatives you've considered

Testing

Built locally under CMake with windows-tiles-sounds-x64-clang-cl profile under VS Insiders 18 and its clang 20

Additional context

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) labels Jan 7, 2026
@alef alef mentioned this pull request Jan 7, 2026
Comment on lines +37 to +42
template <typename Arg, typename... Args,
typename = std::enable_if_t<
!std::is_same_v<std::decay_t<Arg>, math_exception_impl>
>
>
constexpr explicit math_exception_impl( Args && ...args )
constexpr explicit math_exception_impl( Arg &&arg, Args &&... args )
Copy link
Contributor

Choose a reason for hiding this comment

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

[JSON & C++ formatters] reported by reviewdog 🐶

Suggested change
template <typename Arg, typename... Args,
typename = std::enable_if_t<
!std::is_same_v<std::decay_t<Arg>, math_exception_impl>
>
>
constexpr explicit math_exception_impl( Args && ...args )
constexpr explicit math_exception_impl( Arg &&arg, Args &&... args )
template < typename Arg, typename... Args,
typename = std::enable_if_t <
!std::is_same_v<std::decay_t<Arg>, math_exception_impl>
>
>
constexpr explicit math_exception_impl( Arg && arg, Args && ... args )

: exception( string_format( "%s: %s", _severity_str<severity_>(),
string_format( std::forward<Args>( args )... ) ) ) {}
string_format( std::forward<Arg>( arg ),
std::forward<Args>( args )... ) ) ) {}
Copy link
Contributor

Choose a reason for hiding this comment

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

[JSON & C++ formatters] reported by reviewdog 🐶

Suggested change
std::forward<Args>( args )... ) ) ) {}
std::forward<Args>( args )... ) ) ) {}

@github-actions github-actions bot added json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant