Project

General

Profile

Feature #1682

Expose Arrays' Index Type as a Type Alias

Added by Nils Deppe 3 months ago. Updated about 1 month ago.

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

0%


Description

It would be really convenient if the template parameter to the base class of CBase_ (specifically the T passed to ArrayElementT<T>) was exposed as a type alias (or typedef) inside the CBase_ class, and maybe even the CProxy_.

History

#1 Updated by Eric Bohm 3 months ago

  • Target version changed from 6.8.1 to 6.9.0

Retargeting new feature request to next major version

#2 Updated by Phil Miller 3 months ago

  • Assignee set to Evan Ramos

Good suggestion. We'll try to get it into the next release.

#3 Updated by Evan Ramos 3 months ago

Sounds simple enough. Any suggestions for the name of the typedef?

#4 Updated by Nils Deppe 2 months ago

I'd go with the obvious: array_element_t :)

#5 Updated by Evan Ramos 2 months ago

  • Status changed from New to In Progress

https://charm.cs.illinois.edu/gerrit/3109

I was able to add array_index_t to CProxy_*. Adding it to the base looked impossible (see CBaseT1 in src/ck-core/charm++.h), but you can access the proxy from the base using proxy_t.

#6 Updated by Sam White about 1 month ago

  • Status changed from In Progress to Merged

Also available in: Atom PDF