DDS-PSM-Cxx 1.1 RTF Avatar
  1. OMG Issue

DDSPSMC11 — Generic InstanceHandle constructor should be explicit

  • Key: DDSPSMC11-65
  • Status: open  
  • Source: Real-Time Innovations ( Alejandro Campos)
  • Summary:

    Replace:

    dds/core/TInstanceHandle.hpp
      template <typename ARG0>
      TInstanceHandle(const ARG0& arg0);
    

    with:

      template <typename ARG0>
      explicit TInstanceHandle(const ARG0& arg0);
    

    An implicit constructor like that one indicates the compiler that it can implicitly convert any type to InstanceHandle, which severely interferes with the compiler's template substitution procedures and error reporting.

  • Reported: DDS-PSM-Cxx 1.0 — Mon, 19 Sep 2016 16:59 GMT
  • Updated: Mon, 19 Sep 2016 16:59 GMT