Guest User

Untitled

a guest
Oct 24th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.41 KB | None | 0 0
  1. void test (const(char)[] format, S...)(S arguments)
  2. {
  3.  
  4. }
  5.  
  6.  
  7.  
  8. int main(char[][] args)
  9. {
  10.     test("foobar", 1, 2, 3);
  11.     return 0;
  12. }
  13.  
  14. // dmd test4.d
  15. // test4.d(8): Error: template test4.test(const(char)[] format,S...) does not match any function template declaration
  16. // test4.d(8): Error: template test4.test(const(char)[] format,S...) cannot deduce template function from argument types !()(string,int,int,int)
Add Comment
Please, Sign In to add comment