Modify

Opened 8 years ago

#3720 new Feature Requests

templated comparison operators

Reported by: anonymous Owned by: Fernando Cacciola
Milestone: Boost 1.42.0 Component: optional
Version: Boost 1.41.0 Severity: Problem
Keywords: Cc:

Description

template<class T> inline bool operator == ( optional<T> const& x, optional<T> const& y ) ;

and all other comparison operators should be replaced by

template<class T,class Y> bool operator==(optional<T> const &,optional<Y> const &);

so optionals of different but comparable types can be compared.

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Fernando Cacciola.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.