bugGetFEM - Bugs: bug #52142, please document gmm::vref

 
 

bug #52142: please document gmm::vref

Submitted by:  None
Submitted on:  Fri 29 Sep 2017 04:02:53 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Yves Renard <renard>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 30 Sep 2017 08:54:44 AM UTC, comment #1:

Documentation has been updated. Thank you for the report.

Yves Renard <renard>
Project AdministratorIn charge of this item.
Fri 29 Sep 2017 04:02:53 PM UTC, original submission:

gmm++ 5.2 breaks this existing code:
```
#include <gmm/gmm.h>
#include <vector>
#include <iostream>
main() {
std::vector<double> a = {1.0, 2.0, 3.0};
std::cout << a;
}
```
which compiles & works fine with gmm++ 5.1 but fails to compile with 5.2; error code with g++ 7.2 is:
```
a.cc:8:13: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘std::vector<double>’)
```

this is because of how https://savannah.nongnu.org/bugs/?func=detailitem&item_id=51107 was fixed with http://git.savannah.nongnu.org/cgit/getfem.git/commit/?id=90375bac19595ba8a290a6d91b2a7d9d7f0282e8

please document that existing code should be changed like this to compile:
```
std::cout << gmm::vref(a);
```

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by renard (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 30 Sep 2017 08:54:44 AM UTCrenardStatusNone=>Fixed
      Assigned toNone=>renard
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1