Topic: Pre-Standard compiler compatibility factor for additions to the


Author: brok@rubikon.pl (Bronek Kozicki)
Date: Fri, 14 Oct 2005 13:57:08 GMT
Raw View
P.J. Plauger wrote:
> assemble your own compliant compiler from Comeau's inexpensive
> compiler package and a package from our web site.

actually, during Boost regression testing we found some problems with
its variadic macros (these appeared to be no macros at all). But it
comes very close to 100%

> Unless it was called auto_ptr. (Supply your own emoticon here.)

well, at the time auto_ptr was discussed, language did not have proper
move semantics. To stay on topic: I'm pretty certain that any library
depending on newly proposed language features (eg. move semantics and
rvalue-references, even though these are implemented only experimentaly)
will not be precluded from discussion.


B.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]





Author: Bronek Kozicki <brok@rubikon.pl>
Date: 15 Oct 2005 04:50:01 GMT
Raw View
Bronek Kozicki wrote:
> actually, during Boost regression testing we found some problems with
> its variadic macros (these appeared to be no macros at all). But it

. just minor correction. The problem is not with macros, but va_list
type which seems to be defined in the wrong namespace.


B.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]





Author: petebecker@acm.org (Pete Becker)
Date: Sat, 15 Oct 2005 04:46:43 GMT
Raw View
Bronek Kozicki wrote:

> P.J. Plauger wrote:
>
>> assemble your own compliant compiler from Comeau's inexpensive
>> compiler package and a package from our web site.
>
>
> actually, during Boost regression testing we found some problems with
> its variadic macros (these appeared to be no macros at all). But it
> comes very close to 100%

variadic macros are not (yet) part of C++.

--

Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]





Author: brok@rubikon.pl (Bronek Kozicki)
Date: Sat, 15 Oct 2005 18:07:37 GMT
Raw View
Pete Becker wrote:
> variadic macros are not (yet) part of C++.

I think they belong to standard header <cstdarg>, see clause 18.7 and
clauses 17.4.3.1.3 - 17.4.3.1.4 with footnotes


B.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]





Author: petebecker@acm.org (Pete Becker)
Date: Sat, 15 Oct 2005 20:30:47 GMT
Raw View
Bronek Kozicki wrote:
> Pete Becker wrote:
>
>> variadic macros are not (yet) part of C++.
>
>
> I think they belong to standard header <cstdarg>, see clause 18.7 and
> clauses 17.4.3.1.3 - 17.4.3.1.4 with footnotes
>

I thought that by "variadic macros" you meant macros with
variable-length argument lists. You're right: the C language support for
functions with variable-length argument lists comes from <stdarg.h> or
<cstdarg>.

--

Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]





Author: brok@rubikon.pl (Bronek Kozicki)
Date: Sun, 16 Oct 2005 07:55:01 GMT
Raw View
P.J. Plauger wrote:
>>. just minor correction. The problem is not with macros, but va_list type
>>which seems to be defined in the wrong namespace.
>
> If you're expecting that including <stdarg.h> will define va_list
> in namespace std, you're out of luck

well, obviously I do not. And the problem I mentioned  does not apply to
Dinkumware library, but compiler itself (surprise). Soon it will be gone
anyway, as new version of the compiler is on its way.


B.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]