mirror of
https://github.com/boostorg/local_function.git
synced 2026-01-30 20:02:15 +00:00
Resolved all LocalFunctions to-dos. Still trying to pin-point a VACPP internal error.
[SVN r78371]
This commit is contained in:
@@ -35,19 +35,13 @@
|
||||
template<typename T>
|
||||
void f(T& delta) {
|
||||
LOCAL_INC_DEC_TPL(delta) // Multiple local functions on same line.
|
||||
/** @todo back to BOOST_TEST(dec(inc(123)) == 123)) and doc that on vacpp compiler composition doesn't work */
|
||||
BOOST_TEST(inc(123) == 123 + delta);
|
||||
BOOST_TEST(dec(123) == 123 - delta);
|
||||
BOOST_TEST(dec(inc(123)) == 123);
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
int delta = 10;
|
||||
|
||||
LOCAL_INC_DEC(delta) // Declare local functions on same line using `_ID`.
|
||||
/** @todo back to BOOST_TEST(dec(inc(123)) == 123)) and doc that on vacpp compiler composition doesn't work */
|
||||
BOOST_TEST(inc(123) == 123 + delta);
|
||||
BOOST_TEST(dec(123) == 123 - delta);
|
||||
|
||||
BOOST_TEST(dec(inc(123)) == 123);
|
||||
f(delta);
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user