issue in using vector in version 1.64
Hello, I just build the latest version of boost (1.64) I tried running the following code: http://ideone.com/n6FSKr It didn't compile and instead gave the following error: https://usercontent.irccloud-cdn.com/file/Pf0b8F8L/Screenshot%20from%202017-... Can someone please help in understanding and rectifying it. Thanks in advance, Best Regards, Rishabh
I just build the latest version of boost (1.64) I tried running the following code: http://ideone.com/n6FSKr It didn't compile and instead gave the following error: https://usercontent.irccloud-cdn.com/file/Pf0b8F8L/Screenshot%20from%202017-...
No error here with both g++ 6.3.0 and clang 3.9.1. Output is: [3](0,1,2) Does /usr/local/boost_1_64_0 correspond to an installation directory or a source directory? Frédéric
On 5/22/2017 3:32 AM, Rishabh Arora via ublas wrote:
Hello, I just build the latest version of boost (1.64) I tried running the following code: http://ideone.com/n6FSKr
What is ? v (i) = i;
It didn't compile and instead gave the following error: https://usercontent.irccloud-cdn.com/file/Pf0b8F8L/Screenshot%20from%202017-... Can someone please help in understanding and rectifying it.
Thanks in advance,
Best Regards, Rishabh
it works for me too. Strange but that you have. Are you sure your boost is correctly installed ? @Edward: v(i) = i; assigns i to v at position i the () is an overloaded operator in ublas::vector equivalent to [] So here you could write v(i) = i; or v[i] = i; For matrices, however, you need to write m(i,j) = value; On Mon, May 22, 2017 at 8:32 AM, Rishabh Arora via ublas < ublas@lists.boost.org> wrote:
Hello, I just build the latest version of boost (1.64) I tried running the following code: http://ideone.com/n6FSKr It didn't compile and instead gave the following error: https://usercontent.irccloud-cdn.com/file/Pf0b8F8L/Screenshot%20from% 202017-05-22%2012-37-43.png Can someone please help in understanding and rectifying it.
Thanks in advance,
Best Regards, Rishabh
_______________________________________________ ublas mailing list ublas@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/ublas Sent to: david.bellot@gmail.com
participants (4)
-
David Bellot
-
Edward Diener
-
Frédéric Bron
-
Rishabh Arora