delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/01/19/02:30:18

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: <baec0bf0.0401182322.949c10f@posting.google.com>
References: <baec0bf0 DOT 0401150203 DOT 3131cb36 AT posting DOT google DOT com> <7b68d58f DOT 0401150929 DOT c3117c3 AT posting DOT google DOT com> <bu7dmc$eofha$1 AT ID-55127 DOT news DOT uni-berlin DOT de> <bq3Ob.24421$VS4 DOT 748215 AT bgtnsc04-news DOT ops DOT worldnet DOT att DOT net>
NNTP-Posting-Host: 212.220.74.157
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019