UCM 1.4 RTF Avatar
  1. OMG Issue

UCM14 — sequence/const mapping

  • Key: UCM14-1
  • Status: open  
  • Source: Remedy IT ( Johnny Willemsen)
  • Summary:

    The bounded sequence maps to a std::array but that is very heavy in terms of memory management. In a lot of use cases a sequence bound is set to limit the size, but by mapping it to a std::array the result is that the maximum is allocated directly in memory. IDL to C+11 doesn't require this, it maps to a distinct type that supports the bound, but not to a std::array. Would recommend to update this mapping to match with IDL to C+11

    Also a constant is mapped to const, in a lot of cases it can be mapped to a constexpr, which is even better, see IDL to C++11

  • Reported: UCM 1.2 — Fri, 20 Aug 2021 09:32 GMT
  • Updated: Wed, 8 Sep 2021 13:47 GMT