Project

General

Profile

Bug #1567

[aggregate] entry methods should refuse to accept CkEntryOptions, since the contents are unusable

Added by Phil Miller about 2 years ago. Updated over 1 year ago.

Status:
Merged
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
05/17/2017
Due date:
% Done:

0%


Description

Without C++11 support, we can stick in

if (impl_e_opts) CkAbort("[aggregate] entry methods can't handle any entry method options from CkEntryOptions");

Post C++11, we could instead do

template <int a = 0>
void CProxyElement_Foo::myMethodBar(int arg, CkEntryOptions *impl_e_opts) {
static_assert(false, "[aggregate] entry methods can't handle any entry method options from CkEntryOptions");
}

So that users get an explicit compile-time error rather than at runtime.

History

#1 Updated by Eric Bohm about 2 years ago

  • Assignee set to Eric Mikida

#2 Updated by Eric Mikida over 1 year ago

  • Status changed from New to Implemented

From what I can tell, since we have C++11 support, using the delete keyword seems to be the more standard way of accomplishing this.

#3 Updated by Eric Mikida over 1 year ago

  • Status changed from Implemented to Merged

Also available in: Atom PDF