Skip to content

Commit 3542521

Browse files
committed
[STF] Declare from_index at namespace scope for unqualified lookup
The friend definition inside data_place is only found via ADL when a data_place argument is present. Calls like from_index(n) in logical_data.cuh have no data_place argument, so add a matching declaration at namespace scope so the identifier is visible to unqualified lookup. Made-with: Cursor
1 parent 70149e6 commit 3542521

File tree

1 file changed

+3
-0
lines changed
  • cudax/include/cuda/experimental/__stf/places

1 file changed

+3
-0
lines changed

cudax/include/cuda/experimental/__stf/places/places.cuh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,9 @@ private:
388388
::std::shared_ptr<data_place_interface> pimpl_;
389389
};
390390

391+
/** Declaration for unqualified lookup (friend is only found via ADL when a \c data_place argument is present). */
392+
inline data_place from_index(size_t n);
393+
391394
/**
392395
* @brief Indicates where a computation takes place (CPU, dev0, dev1, ...)
393396
*

0 commit comments

Comments
 (0)