diff options
Diffstat (limited to 'boost/compute/iterator/counting_iterator.hpp')
-rw-r--r-- | boost/compute/iterator/counting_iterator.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/compute/iterator/counting_iterator.hpp b/boost/compute/iterator/counting_iterator.hpp index 304c1e05cf..384486bcb3 100644 --- a/boost/compute/iterator/counting_iterator.hpp +++ b/boost/compute/iterator/counting_iterator.hpp @@ -47,14 +47,14 @@ struct counting_iterator_index_expr { typedef T result_type; - counting_iterator_index_expr(const T &init, const IndexExpr &expr) + counting_iterator_index_expr(const T init, const IndexExpr &expr) : m_init(init), m_expr(expr) { } - const T &m_init; - IndexExpr m_expr; + const T m_init; + const IndexExpr m_expr; }; template<class T, class IndexExpr> |