http://bugzilla.openwatcom.org/show_bug.cgi?id=1162
Summary: missing default constructor results in "cannot construct
object from argument" during template instantiation
Product: Open Watcom C/C++ Compiler
Version: OW 1.9
Platform: Win32 hosted tools
OS/Version: Windows 7
Status: UNCONFIRMED
Severity: major
Priority: --
Component: wpp386.exe
AssignedTo:
openwatco...@openwatcom.org
ReportedBy:
thomas.h...@s-t.de
the following code produces the error message:
vector(68): Error! E340: col(59) cannot construct object from argument(s)
vector(68): Note! N393: col(59) included from DefaultConstructor.cpp(6)
vector(68): Note! N633: col(59) template class instantiation for
std::vector<A,std::allocator<A>>' was in: Def ...
command line to compile this:
wpp386 /d2 /debug DefaultConstructor.cpp
*********** the code ***** DefaultConstructor.cpp ****************
#include <vector>
using namespace std;
class A
{
public:
A(int i1){ }
~A(){}
};
int main( int argc, char *argv[] )
{
vector<A> v;
return 0;
}
--
Configure bugmail:
http://bugzilla.openwatcom.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.