Skip to content

Commit 1b123aa

Browse files
committed
Fixes bug 440-- i.e., making wrapRawVector work even if the Coordinates class does not match the default one of the reference or reference_omp backend.
1 parent a0c4371 commit 1b123aa

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

include/graphblas/reference/vector.hpp

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,22 @@ namespace grb {
234234

235235
friend class PinnedVector< D, BSP1D >;
236236

237-
friend Vector< D, reference, MyCoordinates > internal::wrapRawVector<
238-
D, reference
239-
>( const size_t n, D *__restrict__ const raw );
237+
template< typename ValueType, Backend backend >
238+
friend Vector<
239+
ValueType, backend,
240+
internal::Coordinates<
241+
config::IMPLEMENTATION< backend >::coordinatesBackend()
242+
>
243+
> internal::wrapRawVector( const size_t n, ValueType *__restrict__ const
244+
raw );
240245

241-
friend const Vector< D, reference, MyCoordinates > internal::wrapRawVector<
242-
D, reference
243-
>( const size_t n, const D *__restrict__ const raw );
246+
template< typename ValueType, Backend backend >
247+
friend const Vector<
248+
ValueType, backend,
249+
internal::Coordinates<
250+
config::IMPLEMENTATION< backend >::coordinatesBackend()
251+
>
252+
> internal::wrapRawVector( const size_t n, const ValueType *__restrict__ const raw );
244253

245254
/* *********************
246255
Auxiliary backend friends

0 commit comments

Comments
 (0)