Skip to content

Commit

Permalink
Add virtual destructor
Browse files Browse the repository at this point in the history
It was causing enough warnings to trigger the Travis CI log overflow
limit...
  • Loading branch information
keryell committed Jun 12, 2018
1 parent b4562f1 commit bdc06b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/CL/sycl/accessor/detail/accessor_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ class accessor_base {
#ifdef TRISYCL_OPENCL
/// Get the boost::compute::buffer or throw if unset
virtual boost::compute::buffer get_cl_buffer() const = 0;

// Virtual to call the real destructor
virtual ~accessor_base() {}
#endif

};
Expand Down
2 changes: 1 addition & 1 deletion include/CL/sycl/error_handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct error_handler {
*/
static trisycl::default_error_handler default_handler;


// Virtual to call the real destructor
virtual ~error_handler() = 0;
};

Expand Down

0 comments on commit bdc06b6

Please sign in to comment.