Merge pull request #2274 from atgeirr/fix-auto-in-prototype

Change auto in prototype to template argument.
This commit is contained in:
Bård Skaflestad 2020-01-10 10:38:57 +01:00 committed by GitHub
commit 558873bc80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -755,8 +755,8 @@ ADD_PACK_PROTOTYPES(WellTracerProperties)
ADD_PACK_PROTOTYPES(WList) ADD_PACK_PROTOTYPES(WList)
ADD_PACK_PROTOTYPES(WListManager) ADD_PACK_PROTOTYPES(WListManager)
template<class T> template<class T, class C>
const T& packAndSend(const T& in, const auto& comm) const T& packAndSend(const T& in, const C& comm)
{ {
if (comm.size() == 0) if (comm.size() == 0)
return in; return in;
@ -770,8 +770,8 @@ const T& packAndSend(const T& in, const auto& comm)
return in; return in;
} }
template<class T> template<class T, class C>
void receiveAndUnpack(T& result, const auto& comm) void receiveAndUnpack(T& result, const C& comm)
{ {
int size; int size;
comm.broadcast(&size, 1, 0); comm.broadcast(&size, 1, 0);