incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Chariton" <chari...@roguewave.com>
Subject Compiler Warning 552 with bitset
Date Fri, 02 Jun 2006 19:28:11 GMT
I am getting a compiler Warning 552 on HP-UX 11.11 with an A.03.63
compiler.  Here is the code that recreates the warning:

 

#include <bitset>

#include <iostream>

#include <string>

#include <cstring>

 

int main(void)

{

            const char *a = "11";

            std::bitset<8> header(static_cast<std::string>(a));

            for (std::string::size_type i =0; i < header.size();++i)

            {

                        std::cout << header[i] << "\n";                 

            }

        std::cout << header.to_string<char, std::char_traits<char>, 

               std::allocator<char> >() + "" 

               << std::endl; 

        return 0;

}

 

I am not seeing this with gcc on Linux.  The code appears to run the
fine on in both cases.  I was just wondering if this is a compiler issue
and, if so, is there any reason for concern?

 

Craig Chariton

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message