Skip to content

Commit 4b9e78d

Browse files
committed
Fix property_list_t example
1 parent 7b39422 commit 4b9e78d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/doc/extensions/PropertyList/SYCL_EXT_ONEAPI_property_list.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ using property_list_t = property_list</* unspecified */>;
526526
The following example shows how `property_list_t` is used to create a property list containing the compile-time constant properties `bar` and `foo`:
527527

528528
```c++
529-
using P1 = property_list_t<bar_v<1>, foo_v>;
530-
using P2 = property_list_t<foo_v, bar_v<1>>;
529+
using P1 = property_list_t<bar::value_t<1>, foo::value_t>;
530+
using P2 = property_list_t<foo::value_t, bar::value_t<1>>;
531531
static_assert(std::is_same<P1, P2>::value); // Succeeds, since the order of properties does not matter
532532
static_assert(P1.get_property<bar>().value == 1);
533533
```

0 commit comments

Comments
 (0)