|
Boost : |
From: Paul A Bristow (pbristow_at_[hidden])
Date: 2004-09-17 08:28:52
| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]] On Behalf Of Ben Hutchings
| Sent: 16 September 2004 15:11
| To: boost_at_[hidden]
| Subject: RE: [boost] spirit 1.8 / vc 8.0 test results
|
| Paul A Bristow <pbristow_at_[hidden]> wrote:
| <snip>
| > PS The query was about an item which failed to compile using 8.0
| > (OK with 7.1)
| >
| > template<typename T, typename BigT>
| > out_sqr(ostream& os, T x, BigT temp)
| > {
| > temp = x * x;
| > os << temp;
| > }
| >
| > Bray says that this is because the implicit function return type is
| > int,
|
| This is a non-standard extension for compatibility with a predecessor
| of C that was replaced over 30 years ago. It appals me that any
| current C++ compiler still supports it.
Well MSVC 7.1 did! And didn't even squeak at warning level 4 when no return
statement was provided!
But things are improving - including my knowledge of C++ ;-)
Paul
Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539 561830 +44 7714 330204
mailto: pbristow_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk