@@ -320,23 +320,23 @@ void test_dispatch0() {
320
320
Verifier<T>::verify0 ((const Thing<T>*)&thing, &Thing<T>::const_member_func0);
321
321
Verifier<T>::verify0 ((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func0);
322
322
Verifier<T>::verify0 ((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func0);
323
- Verifier<T>::verify0 (&thing, & bound_func0<T>);
324
- Verifier<T>::verify0 ((const Thing<T>*)&thing, &const_bound_func0<T> );
325
- Verifier<T>::verify0 ((volatile Thing<T>*)&thing, &volatile_bound_func0<T> );
326
- Verifier<T>::verify0 ((const volatile Thing<T>*)&thing, &const_volatile_bound_func0<T> );
327
- Verifier<T>::verify0 (&thing, & void_func0<T>);
328
- Verifier<T>::verify0 ((const Thing<T>*)&thing, &const_void_func0<T> );
329
- Verifier<T>::verify0 ((volatile Thing<T>*)&thing, &volatile_void_func0<T> );
330
- Verifier<T>::verify0 ((const volatile Thing<T>*)&thing, &const_volatile_void_func0<T> );
323
+ Verifier<T>::verify0 (&bound_func0<T>, &thing );
324
+ Verifier<T>::verify0 (&const_bound_func0<T>, (const Thing<T>*)&thing);
325
+ Verifier<T>::verify0 (&volatile_bound_func0<T>, (volatile Thing<T>*)&thing);
326
+ Verifier<T>::verify0 (&const_volatile_bound_func0<T>, (const volatile Thing<T>*)&thing);
327
+ Verifier<T>::verify0 (&void_func0<T>, &thing );
328
+ Verifier<T>::verify0 (&const_void_func0<T>, (const Thing<T>*)&thing);
329
+ Verifier<T>::verify0 (&volatile_void_func0<T>, (volatile Thing<T>*)&thing);
330
+ Verifier<T>::verify0 (&const_volatile_void_func0<T>, (const volatile Thing<T>*)&thing);
331
331
Verifier<T>::verify0 (callback (static_func0<T>));
332
332
333
333
Callback<T ()> cb (static_func0);
334
334
Verifier<T>::verify0 (cb);
335
335
cb = static_func0;
336
336
Verifier<T>::verify0 (cb);
337
- cb.attach (&thing, & bound_func0<T>);
337
+ cb.attach (&bound_func0<T>, &thing );
338
338
Verifier<T>::verify0 (&cb, &Callback<T ()>::call);
339
- Verifier<T>::verify0 (( void *)&cb, & Callback<T ()>::thunk);
339
+ Verifier<T>::verify0 (& Callback<T ()>::thunk, ( void *)&cb );
340
340
}
341
341
342
342
template <typename T>
@@ -347,23 +347,23 @@ void test_dispatch1() {
347
347
Verifier<T>::verify1 ((const Thing<T>*)&thing, &Thing<T>::const_member_func1);
348
348
Verifier<T>::verify1 ((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func1);
349
349
Verifier<T>::verify1 ((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func1);
350
- Verifier<T>::verify1 (&thing, & bound_func1<T>);
351
- Verifier<T>::verify1 ((const Thing<T>*)&thing, &const_bound_func1<T> );
352
- Verifier<T>::verify1 ((volatile Thing<T>*)&thing, &volatile_bound_func1<T> );
353
- Verifier<T>::verify1 ((const volatile Thing<T>*)&thing, &const_volatile_bound_func1<T> );
354
- Verifier<T>::verify1 (&thing, & void_func1<T>);
355
- Verifier<T>::verify1 ((const Thing<T>*)&thing, &const_void_func1<T> );
356
- Verifier<T>::verify1 ((volatile Thing<T>*)&thing, &volatile_void_func1<T> );
357
- Verifier<T>::verify1 ((const volatile Thing<T>*)&thing, &const_volatile_void_func1<T> );
350
+ Verifier<T>::verify1 (&bound_func1<T>, &thing );
351
+ Verifier<T>::verify1 (&const_bound_func1<T>, (const Thing<T>*)&thing);
352
+ Verifier<T>::verify1 (&volatile_bound_func1<T>, (volatile Thing<T>*)&thing);
353
+ Verifier<T>::verify1 (&const_volatile_bound_func1<T>, (const volatile Thing<T>*)&thing);
354
+ Verifier<T>::verify1 (&void_func1<T>, &thing );
355
+ Verifier<T>::verify1 (&const_void_func1<T>, (const Thing<T>*)&thing);
356
+ Verifier<T>::verify1 (&volatile_void_func1<T>, (volatile Thing<T>*)&thing);
357
+ Verifier<T>::verify1 (&const_volatile_void_func1<T>, (const volatile Thing<T>*)&thing);
358
358
Verifier<T>::verify1 (callback (static_func1<T>));
359
359
360
360
Callback<T (T)> cb (static_func1);
361
361
Verifier<T>::verify1 (cb);
362
362
cb = static_func1;
363
363
Verifier<T>::verify1 (cb);
364
- cb.attach (&thing, & bound_func1<T>);
364
+ cb.attach (&bound_func1<T>, &thing );
365
365
Verifier<T>::verify1 (&cb, &Callback<T (T)>::call);
366
- Verifier<T>::verify1 (( void *)&cb, & Callback<T (T)>::thunk);
366
+ Verifier<T>::verify1 (& Callback<T (T)>::thunk, ( void *)&cb );
367
367
}
368
368
369
369
template <typename T>
@@ -374,23 +374,23 @@ void test_dispatch2() {
374
374
Verifier<T>::verify2 ((const Thing<T>*)&thing, &Thing<T>::const_member_func2);
375
375
Verifier<T>::verify2 ((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func2);
376
376
Verifier<T>::verify2 ((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func2);
377
- Verifier<T>::verify2 (&thing, & bound_func2<T>);
378
- Verifier<T>::verify2 ((const Thing<T>*)&thing, &const_bound_func2<T> );
379
- Verifier<T>::verify2 ((volatile Thing<T>*)&thing, &volatile_bound_func2<T> );
380
- Verifier<T>::verify2 ((const volatile Thing<T>*)&thing, &const_volatile_bound_func2<T> );
381
- Verifier<T>::verify2 (&thing, & void_func2<T>);
382
- Verifier<T>::verify2 ((const Thing<T>*)&thing, &const_void_func2<T> );
383
- Verifier<T>::verify2 ((volatile Thing<T>*)&thing, &volatile_void_func2<T> );
384
- Verifier<T>::verify2 ((const volatile Thing<T>*)&thing, &const_volatile_void_func2<T> );
377
+ Verifier<T>::verify2 (&bound_func2<T>, &thing );
378
+ Verifier<T>::verify2 (&const_bound_func2<T>, (const Thing<T>*)&thing);
379
+ Verifier<T>::verify2 (&volatile_bound_func2<T>, (volatile Thing<T>*)&thing);
380
+ Verifier<T>::verify2 (&const_volatile_bound_func2<T>, (const volatile Thing<T>*)&thing);
381
+ Verifier<T>::verify2 (&void_func2<T>, &thing );
382
+ Verifier<T>::verify2 (&const_void_func2<T>, (const Thing<T>*)&thing);
383
+ Verifier<T>::verify2 (&volatile_void_func2<T>, (volatile Thing<T>*)&thing);
384
+ Verifier<T>::verify2 (&const_volatile_void_func2<T>, (const volatile Thing<T>*)&thing);
385
385
Verifier<T>::verify2 (callback (static_func2<T>));
386
386
387
387
Callback<T (T, T)> cb (static_func2);
388
388
Verifier<T>::verify2 (cb);
389
389
cb = static_func2;
390
390
Verifier<T>::verify2 (cb);
391
- cb.attach (&thing, & bound_func2<T>);
391
+ cb.attach (&bound_func2<T>, &thing );
392
392
Verifier<T>::verify2 (&cb, &Callback<T (T, T)>::call);
393
- Verifier<T>::verify2 (( void *)&cb, & Callback<T (T, T)>::thunk);
393
+ Verifier<T>::verify2 (& Callback<T (T, T)>::thunk, ( void *)&cb );
394
394
}
395
395
396
396
template <typename T>
@@ -401,23 +401,23 @@ void test_dispatch3() {
401
401
Verifier<T>::verify3 ((const Thing<T>*)&thing, &Thing<T>::const_member_func3);
402
402
Verifier<T>::verify3 ((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func3);
403
403
Verifier<T>::verify3 ((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func3);
404
- Verifier<T>::verify3 (&thing, & bound_func3<T>);
405
- Verifier<T>::verify3 ((const Thing<T>*)&thing, &const_bound_func3<T> );
406
- Verifier<T>::verify3 ((volatile Thing<T>*)&thing, &volatile_bound_func3<T> );
407
- Verifier<T>::verify3 ((const volatile Thing<T>*)&thing, &const_volatile_bound_func3<T> );
408
- Verifier<T>::verify3 (&thing, & void_func3<T>);
409
- Verifier<T>::verify3 ((const Thing<T>*)&thing, &const_void_func3<T> );
410
- Verifier<T>::verify3 ((volatile Thing<T>*)&thing, &volatile_void_func3<T> );
411
- Verifier<T>::verify3 ((const volatile Thing<T>*)&thing, &const_volatile_void_func3<T> );
404
+ Verifier<T>::verify3 (&bound_func3<T>, &thing );
405
+ Verifier<T>::verify3 (&const_bound_func3<T>, (const Thing<T>*)&thing);
406
+ Verifier<T>::verify3 (&volatile_bound_func3<T>, (volatile Thing<T>*)&thing);
407
+ Verifier<T>::verify3 (&const_volatile_bound_func3<T>, (const volatile Thing<T>*)&thing);
408
+ Verifier<T>::verify3 (&void_func3<T>, &thing );
409
+ Verifier<T>::verify3 (&const_void_func3<T>, (const Thing<T>*)&thing);
410
+ Verifier<T>::verify3 (&volatile_void_func3<T>, (volatile Thing<T>*)&thing);
411
+ Verifier<T>::verify3 (&const_volatile_void_func3<T>, (const volatile Thing<T>*)&thing);
412
412
Verifier<T>::verify3 (callback (static_func3<T>));
413
413
414
414
Callback<T (T, T, T)> cb (static_func3);
415
415
Verifier<T>::verify3 (cb);
416
416
cb = static_func3;
417
417
Verifier<T>::verify3 (cb);
418
- cb.attach (&thing, & bound_func3<T>);
418
+ cb.attach (&bound_func3<T>, &thing );
419
419
Verifier<T>::verify3 (&cb, &Callback<T (T, T, T)>::call);
420
- Verifier<T>::verify3 (( void *)&cb, & Callback<T (T, T, T)>::thunk);
420
+ Verifier<T>::verify3 (& Callback<T (T, T, T)>::thunk, ( void *)&cb );
421
421
}
422
422
423
423
template <typename T>
@@ -428,23 +428,23 @@ void test_dispatch4() {
428
428
Verifier<T>::verify4 ((const Thing<T>*)&thing, &Thing<T>::const_member_func4);
429
429
Verifier<T>::verify4 ((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func4);
430
430
Verifier<T>::verify4 ((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func4);
431
- Verifier<T>::verify4 (&thing, & bound_func4<T>);
432
- Verifier<T>::verify4 ((const Thing<T>*)&thing, &const_bound_func4<T> );
433
- Verifier<T>::verify4 ((volatile Thing<T>*)&thing, &volatile_bound_func4<T> );
434
- Verifier<T>::verify4 ((const volatile Thing<T>*)&thing, &const_volatile_bound_func4<T> );
435
- Verifier<T>::verify4 (&thing, & void_func4<T>);
436
- Verifier<T>::verify4 ((const Thing<T>*)&thing, &const_void_func4<T> );
437
- Verifier<T>::verify4 ((volatile Thing<T>*)&thing, &volatile_void_func4<T> );
438
- Verifier<T>::verify4 ((const volatile Thing<T>*)&thing, &const_volatile_void_func4<T> );
431
+ Verifier<T>::verify4 (&bound_func4<T>, &thing );
432
+ Verifier<T>::verify4 (&const_bound_func4<T>, (const Thing<T>*)&thing);
433
+ Verifier<T>::verify4 (&volatile_bound_func4<T>, (volatile Thing<T>*)&thing);
434
+ Verifier<T>::verify4 (&const_volatile_bound_func4<T>, (const volatile Thing<T>*)&thing);
435
+ Verifier<T>::verify4 (&void_func4<T>, &thing );
436
+ Verifier<T>::verify4 (&const_void_func4<T>, (const Thing<T>*)&thing);
437
+ Verifier<T>::verify4 (&volatile_void_func4<T>, (volatile Thing<T>*)&thing);
438
+ Verifier<T>::verify4 (&const_volatile_void_func4<T>, (const volatile Thing<T>*)&thing);
439
439
Verifier<T>::verify4 (callback (static_func4<T>));
440
440
441
441
Callback<T (T, T, T, T)> cb (static_func4);
442
442
Verifier<T>::verify4 (cb);
443
443
cb = static_func4;
444
444
Verifier<T>::verify4 (cb);
445
- cb.attach (&thing, & bound_func4<T>);
445
+ cb.attach (&bound_func4<T>, &thing );
446
446
Verifier<T>::verify4 (&cb, &Callback<T (T, T, T, T)>::call);
447
- Verifier<T>::verify4 (( void *)&cb, & Callback<T (T, T, T, T)>::thunk);
447
+ Verifier<T>::verify4 (& Callback<T (T, T, T, T)>::thunk, ( void *)&cb );
448
448
}
449
449
450
450
template <typename T>
@@ -455,23 +455,23 @@ void test_dispatch5() {
455
455
Verifier<T>::verify5 ((const Thing<T>*)&thing, &Thing<T>::const_member_func5);
456
456
Verifier<T>::verify5 ((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func5);
457
457
Verifier<T>::verify5 ((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func5);
458
- Verifier<T>::verify5 (&thing, & bound_func5<T>);
459
- Verifier<T>::verify5 ((const Thing<T>*)&thing, &const_bound_func5<T> );
460
- Verifier<T>::verify5 ((volatile Thing<T>*)&thing, &volatile_bound_func5<T> );
461
- Verifier<T>::verify5 ((const volatile Thing<T>*)&thing, &const_volatile_bound_func5<T> );
462
- Verifier<T>::verify5 (&thing, & void_func5<T>);
463
- Verifier<T>::verify5 ((const Thing<T>*)&thing, &const_void_func5<T> );
464
- Verifier<T>::verify5 ((volatile Thing<T>*)&thing, &volatile_void_func5<T> );
465
- Verifier<T>::verify5 ((const volatile Thing<T>*)&thing, &const_volatile_void_func5<T> );
458
+ Verifier<T>::verify5 (&bound_func5<T>, &thing );
459
+ Verifier<T>::verify5 (&const_bound_func5<T>, (const Thing<T>*)&thing);
460
+ Verifier<T>::verify5 (&volatile_bound_func5<T>, (volatile Thing<T>*)&thing);
461
+ Verifier<T>::verify5 (&const_volatile_bound_func5<T>, (const volatile Thing<T>*)&thing);
462
+ Verifier<T>::verify5 (&void_func5<T>, &thing );
463
+ Verifier<T>::verify5 (&const_void_func5<T>, (const Thing<T>*)&thing);
464
+ Verifier<T>::verify5 (&volatile_void_func5<T>, (volatile Thing<T>*)&thing);
465
+ Verifier<T>::verify5 (&const_volatile_void_func5<T>, (const volatile Thing<T>*)&thing);
466
466
Verifier<T>::verify5 (callback (static_func5<T>));
467
467
468
468
Callback<T (T, T, T, T, T)> cb (static_func5);
469
469
Verifier<T>::verify5 (cb);
470
470
cb = static_func5;
471
471
Verifier<T>::verify5 (cb);
472
- cb.attach (&thing, & bound_func5<T>);
472
+ cb.attach (&bound_func5<T>, &thing );
473
473
Verifier<T>::verify5 (&cb, &Callback<T (T, T, T, T, T)>::call);
474
- Verifier<T>::verify5 (( void *)&cb, & Callback<T (T, T, T, T, T)>::thunk);
474
+ Verifier<T>::verify5 (& Callback<T (T, T, T, T, T)>::thunk, ( void *)&cb );
475
475
}
476
476
477
477
0 commit comments