Note that there are some explanatory texts on larger screens.

plurals
  1. POC4503 warnings? How do i solve/get rid of them?
    text
    copied!<p>It's my first time trying out C++ STL. I'm trying to build a multidimensional associative array using map. For example:</p> <pre><code>typedef struct DA { string read_mode; string data_type; void *pValue; void *pVarMemLoc; }DA; int main() { map&lt;string, map&lt;string, map&lt;string, map&lt;string, map&lt;string, DA*&gt;&gt;&gt;&gt;&gt; DATA; DATA["lvl1"]["stg1"]["flr1"]["dep1"]["rom1"] = new DA; DATA["lvl1"]["stg1"]["flr1"]["dep1"]["rom2"] = new DA; DATA["lvl1"]["stg1"]["flr1"]["dep1"]["rom3"] = new DA; IEC["lvl1"]["stg1"]["flr1"]["dep1"]["rom1"]-&gt;read_mode = "file"; IEC["lvl1"]["stg1"]["flr1"]["dep1"]["rom2"]-&gt;read_mode = "poll"; IEC["lvl1"]["stg1"]["flr1"]["dep1"]["rom3"]-&gt;read_mode = "report"; return 0; } </code></pre> <p>When compiling the code above in VS2005, I got 170 of C4503 warnings. All of the warnings are about "decorated name length exceeded, name was truncated". The program seems to run fine though.</p> <p>Anyone care to spare some time to explain to me what caused these warnings and how do i solve em? thanks in advance :)</p> <pre><code>Warning 1 warning C4503: 'std::map&lt;_Kty,_Ty&gt;::~map' : decorated name length exceeded, name was truncated c:\program files\microsoft visual studio 8\vc\atlmfc\include\cstringt.h 2121 Warning 2 warning C4503: 'std::map&lt;_Kty,_Ty&gt;::map' : decorated name length exceeded, name was truncated c:\program files\microsoft visual studio 8\vc\atlmfc\include\cstringt.h 2121 Warning 3 warning C4503: 'std::map&lt;_Kty,_Ty&gt;::operator []' : decorated name length exceeded, name was truncated c:\program files\microsoft visual studio 8\vc\atlmfc\include\cstringt.h 2121 Warning 4 warning C4503: 'std::_Tree&lt;_Traits&gt;::~_Tree' : decorated name length exceeded, name was truncated c:\program files\microsoft visual studio 8\vc\atlmfc\include\cstringt.h 2121 Warning 5 warning C4503: 'std::map&lt;_Kty,_Ty&gt;::operator []' : decorated name length exceeded, name was truncated c:\program files\microsoft visual studio 8\vc\atlmfc\include\cstringt.h 2121 Warning 6 warning C4503: 'std::_Tree&lt;_Traits&gt;::iterator::~iterator' : decorated name length exceeded, name was truncated c:\program files\microsoft visual studio 8\vc\atlmfc\include\cstringt.h 2121 Warning 7 warning C4503: 'std::_Tree&lt;_Traits&gt;::iterator::iterator' : decorated name length exceeded, name was truncated c:\program files\microsoft visual studio 8\vc\atlmfc\include\cstringt.h 2121 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload