1 /*============================================================================= 2 Boost.Wave: A Standard compliant C++ preprocessor library 3 http://www.boost.org/ 4 5 Copyright (c) 2020 Jeff Trull. Distributed under the Boost 6 Software License, Version 1.0. (See accompanying file 7 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 8 =============================================================================*/ 9 10 //O --c++20 11 //O -Werror 12 13 // test using __VA_ARGS__ inside __VA_OPT__ 14 // JET: Wave seems to inject a space after some lparens 15 16 #define sizedvec(TYPE, NAME, SIZE, ...) std::vector<TYPE> NAME(SIZE __VA_OPT__(, __VA_ARGS__)) 17 18 //R #line 20 "t_8_004.cpp" 19 //R std::vector<int> foo( 12 ); 20 sizedvec(int, foo, 12); 21 22 //R #line 24 "t_8_004.cpp" 23 //R std::vector<double> bar( 3 , 42.0); 24 sizedvec(double, bar, 3, 42.0); 25