Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370902

Summary: Invalid argument in ifstream / ofstream methods
Product: [Tools] CDT Reporter: Konstantin Pervyshev <pervyshev>
Component: cdt-otherAssignee: Project Inbox <cdt-core-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: yevshif
Version: 8.1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Konstantin Pervyshev CLA 2012-02-08 00:12:07 EST
Build Identifier: M20110909-1335

std::ofstream out;
out.write("a", 1);

Code analysis reports:

Invalid arguments '
Candidates are:
std::basic_ostream<char,std::char_traits<char>> & write(const char *, ?)
'

I have MS VC 10 compiler and use MS VC toolchain.

Reproducible: Always