Closed
Description
I'm using library (flecs) with API like
ecs.system<Position, const Velocity>()
.each([] some lambda
And haven't found way to specify that const
in template call to system()
Which, I believe, cannot be deduced from parameters of lambda
foo<int>();
foo<const int>(); //error
foo<int const>(); //error
foo<in int>(); //error
https://cpp2.godbolt.org/z/sjMWTq3b7
But according to this comment #425 (comment) , it works on pointers
https://cpp2.godbolt.org/z/Tx8e9KfKc
f<* const int>();