1
나는 cpp에서 많은 경험을 갖고 있지 않다.잘못된 템플릿 인수 번호
왜이 작업을 수행합니까?
sc_in<sc_uint<8>> a,b;
adder.cpp:5: error: ‘a’ was not declared in this scope
adder.cpp:5: error: ‘b’ was not declared in this scope
adder.cpp:5: error: wrong number of template arguments (2, should be 1)
이 작업을 수행합니다 컴파일러가 수행하려는 생각하기 때문에
sc_in<int> a,b;
공간이 부족합니다. 그건 그렇고'''''''' – MrEricSir
그건 그렇고, 컴파일러는 [훨씬 더 좋은 오류를 줄 수 있습니다] (http://coliru.stacked-crooked.com/a/2dc1a2495f53c15a). – chris
실제로'>> '는 C++ 11 호환 컴파일러에서는 괜찮습니다. – drescherjm