Default argument for template tuple function parameter

Vladimir Panteleev vladimir at thecybershadow.net
Tue Sep 6 04:01:25 PDT 2011


AddressInfo[] getAddressInfo(T...)(string node, string service = null, T  
options)

DMD complains: "default argument expected for options".

What's the syntax for an empty tuple?

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d-learn mailing list