You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My expectation is that uncommenting the .in line is valid and should compile. Moreover, my impression is that singleton scope is the default, so this code should be semantically identical with or without the commented line.
Actual Behavior
Compile error related to "creatable constraint not satisfied". None of the obvious alternative return values from the lambda work here, nor do obvious variations on the create call (e.g. create<trivial&>). The above failure also applies to other scopes like extension::session, but this may be because they wrap singleton.
The text was updated successfully, but these errors were encountered:
Expected Behavior
(https://godbolt.org/z/rzvja1PqM)
My expectation is that uncommenting the
.in
line is valid and should compile. Moreover, my impression is thatsingleton
scope is the default, so this code should be semantically identical with or without the commented line.Actual Behavior
Compile error related to "creatable constraint not satisfied". None of the obvious alternative return values from the lambda work here, nor do obvious variations on the
create
call (e.g.create<trivial&>
). The above failure also applies to other scopes likeextension::session
, but this may be because they wrapsingleton
.The text was updated successfully, but these errors were encountered: