@@ -272,7 +272,7 @@ class matrix_cl<T, require_arithmetic_t<T>> : public matrix_cl_base {
272272 matrix_cl (const int rows, const int cols,
273273 matrix_cl_view partial_view = matrix_cl_view::Entire)
274274 : rows_(rows), cols_(cols), view_(partial_view) {
275- if (size () == 0 ) {
275+ if (this -> size () == 0 ) {
276276 return ;
277277 }
278278 cl::Context& ctx = opencl_context.context ();
@@ -310,7 +310,7 @@ class matrix_cl<T, require_arithmetic_t<T>> : public matrix_cl_base {
310310 matrix_cl_view partial_view = matrix_cl_view::Entire)
311311 : rows_(A.rows()), cols_(A.cols()), view_(partial_view) {
312312 using Mat_type = std::decay_t <ref_type_for_opencl_t <Mat>>;
313- if (size () == 0 ) {
313+ if (this -> size () == 0 ) {
314314 return ;
315315 }
316316 initialize_buffer_no_heap_if<
@@ -489,7 +489,7 @@ class matrix_cl<T, require_arithmetic_t<T>> : public matrix_cl_base {
489489 template <bool in_order = false >
490490 cl::Event initialize_buffer (const T* A) {
491491 cl::Event transfer_event;
492- if (size () == 0 ) {
492+ if (this -> size () == 0 ) {
493493 return transfer_event;
494494 }
495495 cl::Context& ctx = opencl_context.context ();
@@ -509,7 +509,7 @@ class matrix_cl<T, require_arithmetic_t<T>> : public matrix_cl_base {
509509 template <bool in_order = false >
510510 cl::Event initialize_buffer (T* A) {
511511 cl::Event transfer_event;
512- if (size () == 0 ) {
512+ if (this -> size () == 0 ) {
513513 return transfer_event;
514514 }
515515 cl::Context& ctx = opencl_context.context ();
@@ -548,7 +548,7 @@ class matrix_cl<T, require_arithmetic_t<T>> : public matrix_cl_base {
548548 */
549549 template <bool No_heap, typename U, std::enable_if_t <No_heap>* = nullptr >
550550 void initialize_buffer_no_heap_if (U&& obj) {
551- if (size () == 0 ) {
551+ if (this -> size () == 0 ) {
552552 return ;
553553 }
554554 initialize_buffer (obj.data ());
@@ -558,7 +558,7 @@ class matrix_cl<T, require_arithmetic_t<T>> : public matrix_cl_base {
558558 template <bool No_heap, typename U, std::enable_if_t <!No_heap>* = nullptr >
559559 void initialize_buffer_no_heap_if (U&& obj) {
560560 using U_val = std::decay_t <ref_type_for_opencl_t <U>>;
561- if (size () == 0 ) {
561+ if (this -> size () == 0 ) {
562562 return ;
563563 }
564564 auto * obj_heap = new U_val (std::move (obj));
0 commit comments