[Boost-bugs] [Boost C++ Libraries] #1329: default value

Subject: [Boost-bugs] [Boost C++ Libraries] #1329: default value
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-10-19 12:31:15


#1329: default value
---------------------------------------------------------+------------------
 Reporter: Sergey Shandar <sergey.junk_at_[hidden]> | Type: Feature Requests
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.34.1
 Severity: Problem | Keywords: default
---------------------------------------------------------+------------------
 {{{
 #!cpp
 struct default_
 {
   template<class T>
   operator T() const
   {
     return T();
   }
 };
 }}}
 Useful when you don't want to care about type of unimportant arguments.
 For example
 {{{
 #!cpp
 void SomeFunction(Type1, Type2, Type3);
 ...
 SomeFunction(default_(), default_(), default_());
 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1329>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC