Project

General

Profile

Bug #4811

Missing operator != in Ptr<T>

Added by Rob Kutschke over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Navigation
Target version:
Start date:
10/21/2013
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Occurs In:
Scope:
Internal
Experiment:
Mu2e
SSI Package:
art
Duration:

Description

I have two objects:

Ptr&lt;T&gt; a, b; // initialized somehow

This works:

if ( !( a==b) ) { ... }

This gives a compiler error

if ( a != b ) { ... }

Please add operator !=

Associated revisions

History

#1 Updated by Christopher Green over 6 years ago

  • Category set to Navigation
  • Status changed from New to Resolved
  • Assignee set to Christopher Green
  • Target version set to 1.08.10
  • % Done changed from 0 to 100
  • Estimated time set to 2.00 h
  • Experiment Mu2e added
  • Experiment deleted (-)
  • SSI Package art added
  • SSI Package deleted ()

Fixed and tested with c9b2277. Also, operators ==(), !=() and <() work for Ptr<T> and Ptr<U> assuming T and U are related by inheritance.

#2 Updated by Lynn Garren over 6 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF