Opened 17 years ago

Closed 15 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.

Change History (2)

comment:1 by ejgrace, 16 years ago

Logged In: YES 
user_id=988665

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

http://article.gmane.org/gmane.comp.lib.boost.user/13692

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 by John Maddock, 15 years ago

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

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

Note: See TracTickets for help on using tickets.