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
[SYCL][Doc] Clarify availability of get_property() (#5992)
The extension previously said that certain calls to get_property()
must produce a compiler error, which could be satisfied by calling
static_assert(). A static_assert()-based solution throws errors
any time the get_property<> template is instantiated, which can
lead to some surprising errors in user code.
Stating that get_property() must only be available when the property
type exists in the property list has two advantages:
1) Users can more easily reason about when errors will be thrown and
how to avoid those errors.
2) Users can rely on all implementations to have the same error
behavior.
Signed-off-by: John Pennycook <[email protected]>
0 commit comments