bugGetFEM - Bugs: bug #51107, std namespace pollution

 
 

bug #51107: std namespace pollution

Submitted by:  None
Submitted on:  Wed 24 May 2017 03:32:46 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.

 

Thu 25 May 2017 07:56:33 PM UTC, comment #1:

Dear Sebastian,

You are right, thid is not completely safe.
I commited a patch.

Best regards,

Yves

Yves Renard <renard>
Project AdministratorIn charge of this item.
Wed 24 May 2017 03:32:46 PM UTC, original submission:

Dear developers,

we enjoy using the GMM++ library a lot. However, recently using GMM broke other code. The reason is that we get ambiguous calls when using operator<< with a vector<T>, residing in gmm-interface.h, line 235.

In particular, another overload of this relies in a private namespace, but due to the fact that gmm writes this operator into the std namespace, the resolution is ambiguous.

It seems bad practice to pollute the std namespace, and there is no need for it. By placing this in the gmm-namespace, any issues using gmm++ with other libraries should be resolved.

Best regards,
Sebastian Junges

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
    Thu 25 May 2017 07:57:27 PM UTCrenardStatusNone=>Fixed
      Assigned toNone=>renard
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1