bugCERTI - Bugs: bug #48264, Build fails with Visual Studio 2015

 
 

bug #48264: Build fails with Visual Studio 2015

Submitted by:  None
Submitted on:  Sat 18 Jun 2016 06:46:23 PM UTC  
 
Category: CERTISeverity: 4 - Important
Item Group: Compilation errorStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: GIT-master
Reproducibility: Every TimeFixed Release: Unknown

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 18 Jun 2016 06:46:23 PM UTC, original submission:

there is an error M_Classes.cc and NM_Classes.cc

NM_Classes.cc

95: out << dimensions[i].show(out);
183: out << attributes[i].show(out);
271: out << parameters[i].show(out);
445: out << routingSpaces[i].show(out);
450: out << objectClasses[i].show(out);
455: out << interactionClasses[i].show(out);

M_Classes.cc

1047: out << "(opt) eventRetraction =" << eventRetraction.show(out) << std::endl;
1098: out << "(opt) eventRetraction =" << eventRetraction.show(out) << std::endl;
1181: out << "(opt) eventRetraction =" << eventRetraction.show(out) << std::endl;
1264: out << "(opt) eventRetraction =" << eventRetraction.show(out) << std::endl;
1347: out << "(opt) eventRetraction =" << eventRetraction.show(out) << std::endl;
1398: out << "(opt) eventRetraction =" << eventRetraction.show(out) << std::endl;
1481: out << "(opt) eventRetraction =" << eventRetraction.show(out) << std::endl;
3049: out << " eventRetraction = " << eventRetraction.show(out) << std::endl;

the show method is of type std::ostream& and there is no << operator defined for it in Visual C++ ( works in g++ without problems)

fix : define << operator like so:

std::ostream& operator<<(std::ostream& out, EventRetraction& er) {
return er.show(out);
}

and use :

out << "(opt) eventRetraction =" << eventRetraction << std::endl;

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

 

CC list is empty

 

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

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1