Lumiera  0.pre.03
»edit your freedom«
TestHelperVariadic_test Class Reference

Description

Test:
document usage of the diagnostics helper for variadic templates.

Errors in variadic template instantiations are sometimes hard to spot, due to the intricacies of template argument matching and the reference collapsing rules. Our diagnostics facility is itself a variadic function template, which, when supplied with an argument pack, will build a diagnostic string describing the arguments.

Warning
care has to be taken to pass the template arguments properly, since template argument matching might mess up the reference kind (rvalue, lvalue) of the passed types. Thus, either use std::forward, or spell out the template argument(s) explicitly on invocation
See also
showVariadicTypes()
TestHelper_test

Definition at line 90 of file test-helper-variadic-test.cpp.

Private Member Functions

template<typename... ARGS>
void forwardFunction (string id, ARGS &&... args)
 this dummy simulates a typical variadic call which takes all arguments as '&&' for the purpose of "perfect forwarding"
 
virtual void run (Arg)
 
+ Inheritance diagram for TestHelperVariadic_test:
+ Collaboration diagram for TestHelperVariadic_test:

The documentation for this class was generated from the following file: