-
Key: DDSPSMC-6
-
Legacy Issue Number: 16339
-
Status: closed
-
Source: Real-Time Innovations ( Sumant Tambe)
-
Summary:
1. Safety of Reference<D> class should be improved by adding "explicit" keyword in the following constructors:
template <typename D>
Reference(const Reference<D>& ref);template <typename R>
Reference(const R& that);Reference(const DELEGATE_REF_T& ref);
2. With just member operator== and operator!= functions, Reference<D> can't be used in expressions like
if(dds::null == r)
{ ... }Proposed solution: Add the following free functions in dds::core in Reference.hpp.
template <class D>
{ return r.is_nil(); }
bool operator == (dds::null_type,
const Reference<D> & r)template <class D>
{ return !r.is_nil(); }
bool operator != (dds::null_type,
const Reference<D> & r) -
Reported: DDS-PSM-Cxx 1.0b1 — Fri, 17 Jun 2011 04:00 GMT
-
Disposition: Resolved — DDS-PSM-Cxx 1.0b2
-
Disposition Summary:
The changes suggested by the issue submitter have been applied to the Refence class.
-
Updated: Fri, 6 Mar 2015 20:58 GMT
DDSPSMC — Improving usability of Reference class
- Key: DDSPSMC-6
- OMG Task Force: ISO/IEC C++ DDS PSM FTF