Boost logo

Boost :

From: Alan Gutierrez (ajglist_at_[hidden])
Date: 2003-02-09 15:24:02


Has there been any consderation given to the use of named parameters
with boost::format?

use boost::format;

std::cout << format ("%first-name% %last-name%")
    % format::arg("first-name", "Alan")
    % format::arg("last-name", "Gutierrez")
    << std::endl;

It would not be terribly difficult to implement.

-- 
Alan Gutierrez - ajglist_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk