X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: huli_ebtyt AT list DOT ru (Andrey) Newsgroups: comp.os.msdos.djgpp Subject: Re: Does DJGPP support binary format for integer constants? Date: 18 Jan 2004 23:22:44 -0800 Organization: http://groups.google.com Lines: 13 Message-ID: References: <7b68d58f DOT 0401150929 DOT c3117c3 AT posting DOT google DOT com> NNTP-Posting-Host: 212.220.74.157 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1074496965 8605 127.0.0.1 (19 Jan 2004 07:22:45 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Mon, 19 Jan 2004 07:22:45 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > If so, I don't think there's a way to to do this directly, but you can fake > it using a std::bitset. Josuttis has an example on page 462 of The C++ > Standard Library. The problem is that this method does not provide a > compile-time constant directly. Instead, you can define a constant at > namespace scope (or a static constant inside a function) equal to a > bitset().to_ulong(), so it only gets calculated once. Not perfect, but works > for many purposes. > > Best regards, > > Tom Thank you for support.