Resolved all LocalFunctions to-dos. Still trying to pin-point a VACPP internal error.

[SVN r78371]
This commit is contained in:
Lorenzo Caminiti
2012-05-07 18:54:38 +00:00
parent c73a4e1d8f
commit b229ae8f73
6 changed files with 7 additions and 22 deletions

View File

@@ -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();
}