Subject: [Boost-bugs] [Boost C++ Libraries] #1158: optional named parameters
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-10 07:16:55
#1158: optional named parameters
------------------------------+---------------------------------------------
Reporter: djowel | Owner: djowel
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.34.1 | Severity: Not Applicable
Keywords: |
------------------------------+---------------------------------------------
Can templates notation be extended to use optional named
parameters (onp). I am thinking in:
Template definition:
[template tname [a b c]
[onp_1 default_1]
[onp_2 default_2]
This is the template body...
use unamed forced parameters: [a]
use onp parameters: [onp_1] (This prints the value or the default)
[onp_1? if was used do this : if not do this ]
]
IMO this is a good extension and is backward compatible with the
current implementation.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1158>
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