Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370902 - Invalid argument in ifstream / ofstream methods
Summary: Invalid argument in ifstream / ofstream methods
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-other (show other bugs)
Version: 8.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-08 00:12 EST by Konstantin Pervyshev CLA
Modified: 2020-09-04 15:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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