mirror of
https://github.com/boostorg/foreach.git
synced 2026-02-09 11:02:57 +00:00
latest BOOST_FOREACH
[SVN r46538]
This commit is contained in:
3
test/rvalue_const.cpp
Executable file → Normal file
3
test/rvalue_const.cpp
Executable file → Normal file
@@ -13,7 +13,10 @@
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#ifdef BOOST_FOREACH_NO_CONST_RVALUE_DETECTION
|
||||
// ignore error during Microsoft Code Analysis
|
||||
#if !defined(_PREFAST_)
|
||||
# error Expected failure : const rvalues disallowed
|
||||
#endif
|
||||
#else
|
||||
|
||||
std::vector<int> const get_vector()
|
||||
|
||||
Reference in New Issue
Block a user