Skip to content

Commit fdd890f

Browse files
author
Chen, Brox
committed
fix an error in spec
1 parent 47fff87 commit fdd890f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_annotated_ptr.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ class annotated_ref {
574574

575575
// OP is: +, -, !, ~
576576
template <typename O=T>
577-
auto operatorOP(const annotated_ref& a) -> decltype(OP std::declval<O>());
577+
auto operatorOP() -> decltype(OP std::declval<O>());
578578
};
579579
} // namespace sycl::ext::oneapi::experimental
580580
```
@@ -732,7 +732,7 @@ a|
732732
[source,c++]
733733
----
734734
template <typename O=T>
735-
auto operatorOP(const annotated_ref& a) -> decltype(OP std::declval<O>());
735+
auto operatorOP() -> decltype(OP std::declval<O>());
736736
----
737737
a|
738738
Where [code]#OP# is: [code]#pass:[+]#, [code]#-#, [code]#!#, [code]#~#.

0 commit comments

Comments
 (0)