#652 fassign complains about nonmatching number of arguments
Metadata
| Property | Value | 
|---|---|
| Reported by | Oliver Sander (oliver.sander@tu-dresden.de) | 
| Reported at | Nov 9, 2009 04:06 | 
| Type | Bug Report | 
| Version | Git (pre2.4) [autotools] | 
| Operating System | Unspecified / All | 
| Last edited by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) | 
| Last edited at | Nov 29, 2009 23:28 | 
| Closed by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) | 
| Closed at | Nov 29, 2009 23:28 | 
| Closed in version | Unknown | 
| Resolution | Fixed | 
| Comment | in r5724 | 
Description
I try the following little use of fassign:
#include <config.h>
#include #include <dune/common/fvector.hh> #include <dune/common/fassign.hh>
using namespace Dune;
int main(int argc, char** argv) try { Dune::FieldVector<double,3> pos;
pos <<=  1,  0,  0;} catch (Exception e) {
std::cout << e << std::endl;}
Running the code throws an exception with the message
MathError [~fvector_assigner:/home/haile/sander/dune/dune-common/dune/common/fassign.hh:94]: Trying to assign 5 entries to a FieldVector of size 3
Is this a bug or I am using fassign incorrectly?