Opened 13 years ago

Closed 11 years ago

#492 closed Bugs (fixed)

Adding boost::is_complex to type_traits.hpp

Reported by: ejgrace Owned by: John Maddock
Milestone: Component: type_traits
Version: None Severity: Problem
Keywords: Cc:

Description (last modified by John Maddock)

Following a discussion on boost-users I am adding this
to the bug system so it doesn't get lost.  

Can someone add a boost::is_complex<T> trait so that
checks for complex numbers can be made.  This is a
common requirement in templated scientific code as
complex numbers sometimes need to be treated differently.

Attached is my implementation, please feel free to
incorperate it.

Attachments (0)

Change History (2)

comment:1 Changed 12 years ago by ejgrace

Logged In: YES 

I was writing some new code and wondered what ever happened
to boost::is_complex,

stumbling across a few posts and my original bug report it
appears that I did not actually upload my implementation! 
Sorry I have now attached it.

comment:2 Changed 11 years ago by John Maddock

Description: modified (diff)
Resolution: Nonefixed
Severity: Problem
Status: assignedclosed

This has now (finally!) been added to SVN trunk.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain John Maddock.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.