<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: aCC error in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/acc-error/m-p/3977239#M95485</link>
    <description>&amp;gt;But the temp result of a string constructor isn't a reference. &lt;BR /&gt;&lt;BR /&gt;(I should have said isn't a lvalue.)&lt;BR /&gt;&lt;BR /&gt;aCC6 gives: warning #2461-D, unless +strict is used to make it an error.&lt;BR /&gt;aCC3 gives: Error (future) 438 unless +p is used to make it an error.</description>
    <pubDate>Mon, 09 Apr 2007 20:17:32 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-04-09T20:17:32Z</dc:date>
    <item>
      <title>aCC error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-error/m-p/3977237#M95483</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;       I am using aCC to compile a C++ code.&lt;BR /&gt;    aCC version - aCC: HP ANSI C++ B3910B A.03.70&lt;BR /&gt;&lt;BR /&gt;    in HP UX 11i&lt;BR /&gt;&lt;BR /&gt;        I have a class which contains a function as below.&lt;BR /&gt;&lt;BR /&gt;class ActivitiesFilters  {&lt;BR /&gt;          BaseError addUserFilters(string&amp;amp; lotnumber, string&amp;amp; wafernumb&lt;BR /&gt;er, string&amp;amp; chip);&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;    Where BaseError is the class depending on which error conditions are checked.&lt;BR /&gt;&lt;BR /&gt; Now, I am calling the function from the Cpp file. As below&lt;BR /&gt;    BaseError statusR;&lt;BR /&gt;    statusR = addUserFilters(string("*"), string("*"), string("*"));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The compiler says&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Error 438: "src/activities_filters.cpp", line 608 # The initializer for a&lt;BR /&gt;    non-constant reference must be an lvalue. Try changing&lt;BR /&gt;    'basic_string&lt;CHAR&gt;,allocator&amp;gt; &amp;amp;' to 'const&lt;BR /&gt;    basic_string&lt;CHAR&gt;,allocator&amp;gt; &amp;amp;' at&lt;BR /&gt;    ["./inc/activities_filters.h", line 563].&lt;BR /&gt;                                    statusR = addUserFilters(string("*"), string("*"), string("*"));&lt;BR /&gt;                                                       &lt;BR /&gt;&lt;BR /&gt;Can anybody suggest me any solution for this error because the same code is working fine in windows .net and vc++ compilers.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;BR /&gt;Vikram&lt;/CHAR&gt;&lt;/CHAR&gt;</description>
      <pubDate>Mon, 09 Apr 2007 03:48:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-error/m-p/3977237#M95483</guid>
      <dc:creator>vikram n.r</dc:creator>
      <dc:date>2007-04-09T03:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: aCC error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-error/m-p/3977238#M95484</link>
      <description>&lt;P&gt;&amp;gt;Can anybody suggest me any solution for this error because the same code is working fine in windows .net and vc++ compilers.&lt;BR /&gt;&lt;BR /&gt;I can't see how, this code is illegal.&lt;BR /&gt;&lt;BR /&gt;As the proto says, this takes a reference to a string.&lt;BR /&gt;BaseError addUserFilters(string&amp;amp;, string&amp;amp;, string&amp;amp;);&lt;BR /&gt;&lt;BR /&gt;But the temp result of a string constructor isn't a lvalue. As the error message says, you must change these to const&amp;amp;. Or you must create a temp for your string("*").&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2011 09:06:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-error/m-p/3977238#M95484</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-10-07T09:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: aCC error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-error/m-p/3977239#M95485</link>
      <description>&amp;gt;But the temp result of a string constructor isn't a reference. &lt;BR /&gt;&lt;BR /&gt;(I should have said isn't a lvalue.)&lt;BR /&gt;&lt;BR /&gt;aCC6 gives: warning #2461-D, unless +strict is used to make it an error.&lt;BR /&gt;aCC3 gives: Error (future) 438 unless +p is used to make it an error.</description>
      <pubDate>Mon, 09 Apr 2007 20:17:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-error/m-p/3977239#M95485</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-04-09T20:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: aCC error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-error/m-p/3977240#M95486</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;  Thats right there is +p flag in the Makefile under CXXFLAGS. I removed that flag and compiled the code is compiling fine with warnings.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thank you very much&lt;BR /&gt;Vikram</description>
      <pubDate>Mon, 09 Apr 2007 23:26:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-error/m-p/3977240#M95486</guid>
      <dc:creator>vikram n.r</dc:creator>
      <dc:date>2007-04-09T23:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: aCC error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-error/m-p/3977241#M95487</link>
      <description>If you are happy with your answers, you should read the following on how to assign points:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Mon, 09 Apr 2007 23:44:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-error/m-p/3977241#M95487</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-04-09T23:44:42Z</dc:date>
    </item>
  </channel>
</rss>

