Ticket #7378: example.cpp
| File example.cpp, 369 bytes (added by , 10 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include <boost/pending/property.hpp> |
| 2 | |
| 3 | struct test_prop_tag{}; |
| 4 | |
| 5 | struct non_existing_tag{}; |
| 6 | |
| 7 | int main() { |
| 8 | typedef boost::property<test_prop_tag,int> my_property_list; |
| 9 | bool found_ok = boost::lookup_one_property<my_property_list,test_prop_tag>::found; |
| 10 | bool found_fails = boost::lookup_one_property<my_property_list,non_existing_tag>::found; |
| 11 | return 0; |
| 12 | } |
