List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:December 3 2005 10:32am
Subject:packarray - version 0.2
View as plain text  
Hello fellow coders,

Version 0.2 of the packarray class is available at the same spot:

	http://www.netdirect.ca/~cdfrey/software/packarray.cc

This version handles endian issues all at once, and converts double
values to network byte order as well.  The basic_field<> class is gone,
as it's not needed any longer.

I ran into an interesting issue with regards to C++ aliasing rules, which
you can read about here:

	http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25235

And here:

	http://mail-index.netbsd.org/tech-kern/2003/08/11/0001.html

This makes me rather concerned about the reinterpret_cast<> I have to do
in 4 places in packarray.  Any tips on how to clean that up would be very
much appreciated.

Anyway, it works great for me, even with g++ 4.0.2.  Testing on non-intel
machines would be great.

Enjoy,
- Chris

Thread
packarray - version 0.2Chris Frey3 Dec
  • question...Marco Turchi5 Dec
    • Re: question...Chris Frey5 Dec
      • Re: question...Marco Turchi5 Dec
        • Re: question...Chris Frey5 Dec
          • Re: question...Marco Turchi5 Dec
          • Re: question...Marco Turchi5 Dec
            • Re: question...Chris Frey5 Dec
              • Re: question...Marco Turchi5 Dec
                • Re: question...Chris Frey5 Dec
                  • Re: question...Marco Turchi5 Dec
                    • Re: question...Warren Young5 Dec
  • Re: packarray - version 0.2Chris Frey5 Dec
    • Re: packarray - version 0.2Warren Young15 Dec
      • Re: packarray - version 0.2Chris Frey19 Dec
        • Re: packarray - version 0.2Warren Young20 Dec