Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2005-09-16 02:27:51

Bugs item #1292635, was opened at 2005-09-16 00:27
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: uBLAS::subslice doesn't work

Initial Comment:
Hello all,

I had a problem with compiling a following code for
testing subslice() on uBLAS:
-- test.cpp

#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/vector_proxy.hpp>
#include <boost/numeric/ublas/io.hpp>

int main () {
  using namespace boost::numeric::ublas;
  vector<double> v (3);
  for (int i = 0; i < 3; ++ i)
    boost::numeric::ublas::subslice (v, 0, 1, 3) (i) = i;
  std::cout << v << std::endl;

-- end of test.cpp

% g++ test.cpp
test.cpp: In function `int main()':
test.cpp:9: error: no matching function for call to
las::vector<double, boost::numeric::ublas::
unbounded_array<double, std::allocato
r<double> > >&, int, int, int)'

I guess this is due to some typos on vector_proxy.hpp. I
hope attached patch (from Revision 1.45) helps.


Shun Sakuraba
sakuraba {at}


You can respond by visiting:

SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play:
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at