-
Notifications
You must be signed in to change notification settings - Fork 733
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Fix double definition of default values for template parameters.
Added SuppressDefaultTemplateArguments flag for PrintingPolicy class and use it at generation of the intergation header. Example: /// template<typename T = void> /// class A {...}; /// /*Forward declaration*/ /// template<typename T> class kernel; /// ... /// cgh.parallel_for<class kernel<A>>>( /// range<1>(1), [=](id<1> i){ /*do something*/ }); At the moment the forward declaration of class A will be generated as /// template<typename T = void> class A after this patch will be written as /// template<typename T> class A Signed-off-by: Vladimir Lazarev <vladimir.lazarev@intel.com>
- Loading branch information
1 parent
9be56d5
commit 5c727bb
Showing
3 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters