Ticket #4203: main.cpp
| File main.cpp, 347 bytes (added by , 12 years ago) |
|---|
| Line | |
|---|---|
| 1 | //#include <boost/lambda/lambda.hpp> |
| 2 | #include <boost/lambda/casts.hpp> |
| 3 | #include <boost/lambda/lambda.hpp> |
| 4 | #include <algorithm> |
| 5 | |
| 6 | using namespace boost::lambda; |
| 7 | using namespace std; |
| 8 | |
| 9 | int main() |
| 10 | { |
| 11 | double d[] = { 1.0 }; |
| 12 | size_t const d_size = sizeof(d) / sizeof(d[0]); |
| 13 | float f[ d_size ]; |
| 14 | transform( d, d+d_size, f, ll_static_cast<float>( _1 ) ); |
| 15 | } |
