Skip to content

Commit 7cbf2c3

Browse files
authored
Fix __remove_address_space documentation code example (#792)
Previously code example didn't compile because of missing keyword 'typename'. Keyword is now inserted.
1 parent bc20c1e commit 7cbf2c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cxx4opencl/address_spaces.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ void foo(T *par) {
600600
// address space.
601601
__private T var2; // error: conflicting address space qualifiers are provided
602602
// between types '__private T' and '__global int'.
603-
__private __remove_address_space<T>::type var3; // type of var3 is __private int.
603+
__private typename __remove_address_space<T>::type var3; // type of var3 is __private int.
604604
}
605605

606606
void bar() {

0 commit comments

Comments
 (0)