Re:Variadic function can have type safety.
If you use proper C++ there are several ways of handing over a variable
list of arguments to an object/method. See this example:
l.print("The price of $ is $ at $").sa("wheat").sa(16.66).sa("Monday,
17th, August 2011");
The trick here is that print() and sa() return the Logger object, so that
you can have a nice syntax. I did this with great success.
|All times are GMT. The time now is 05:20 PM.|
SEO by vBSEO ©2010, Crawlability, Inc.