projects
/
platform
/
upstream
/
boost.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 1.72.0
[platform/upstream/boost.git]
/
libs
/
contract
/
example
/
features
/
check.cpp
diff --git
a/libs/contract/example/features/check.cpp
b/libs/contract/example/features/check.cpp
index
e82cb8c
..
36aa9da
100644
(file)
--- a/
libs/contract/example/features/check.cpp
+++ b/
libs/contract/example/features/check.cpp
@@
-30,7
+30,7
@@
int gcd(int const a, int const b) {
//[check
int main() {
// Implementation checks (via nullary functor).
- boost::contract::check c = [
&
] {
+ boost::contract::check c = [] {
BOOST_CONTRACT_ASSERT(gcd(12, 28) == 4);
BOOST_CONTRACT_ASSERT(gcd(4, 14) == 2);
};