Skip to content

fold_inplace initial value is not constexpr #97

Answered by foonathan
Life4gal asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of passing an initial value, pass a lambda that returns that value: https://godbolt.org/z/xoa1xdbGj

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@Life4gal
Comment options

@foonathan
Comment options

Answer selected by foonathan
Comment options

You must be logged in to vote
2 replies
@foonathan
Comment options

@Life4gal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #96 on November 05, 2022 08:35.