Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
4.2.1
-
None
-
Compiler Warning
Description
Note that I have removed +W4231 from the build line by modifying $(BUILDDIR)/makefile.in
[vitek@gofish tests]$ cat t.cpp && gmake t.o #include <vector> struct S { }; int main () { S s; std::vector<S> v; v.assign (&s, &s + 1); return 0; } aCC -c -D_RWSTDDEBUG \ -I/amd/devco/vitek/stdcxx/4.3.x/include \ -I/build/vitek/4.3.0/11S/include \ -I/amd/devco/vitek/stdcxx/4.3.x/tests/include \ -AA -g +d +DD64 +w \ +W392,655,684,818,819,849 \ +W2193,2236,2261,2340,2401,2487 \ +W4227,4229,4235,4237,4249 \ +W4255,4272,4284,4285,4286,4296,4297 \ +W3348 t.cpp "/amd/devco/vitek/stdcxx/4.3.x/include/vector", line 194: remark #4231-D: 64 bit migration: conversion between types of different sizes has occurred (from "int" to "void *" ) _C_assign (__first, __last, _RWSTD_DISPATCH (_InputIter)); ^ detected during instantiation of "void std::vector<_TypeT, _Allocator>::assign(_InputIter, _InputIter) [with _TypeT=S, _Allocator=std::allocator<S>, _InputIter=S *]" at line 10 of "t.cpp"
Attachments
Issue Links
- relates to
-
STDCXX-1009 std::string::{assign|append|insert|replace} ([iterator, iterator,] size_type, value_type) ambiguous
-
- Closed
-