Ticket #1502: indirect.cpp
| File indirect.cpp, 453 bytes (added by , 15 years ago) |
|---|
| Line | |
|---|---|
| 1 | #define BOOST_UBLAS_ENABLE_PROXY_SHORTCUTS |
| 2 | |
| 3 | #include <vector> |
| 4 | #include <boost/numeric/ublas/matrix.hpp> |
| 5 | #include <boost/numeric/ublas/vector.hpp> |
| 6 | #include <boost/numeric/ublas/matrix_proxy.hpp> |
| 7 | #include <boost/numeric/ublas/vector_proxy.hpp> |
| 8 | |
| 9 | int main() |
| 10 | { |
| 11 | using namespace boost::numeric::ublas; |
| 12 | indirect_array<std::vector<std::size_t> > ia; |
| 13 | matrix<double> m; |
| 14 | vector<double> v; |
| 15 | m(ia,ia); // compilation error |
| 16 | v(ia); // compilation error |
| 17 | } |
