Re: c2143 syntax errors.
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Wed, 3 Oct 2007 19:33:18 -0400
cablepuff@xxxxxxxxx wrote:
On Oct 2, 9:44 pm, "Igor Tandetnik" <itandet...@xxxxxxxx> wrote:
<cablep...@xxxxxxxxx> wrote in message
news:1191386400.452507.292360@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
template <class T, class U>
char (& is_op_test(boost::operators<T,U> const&) )[2]
c:\cpw\msvc\cs512\c++\cppdef\../MyOperators.hpp(25) : error C2143:
syntax error
missing ';' before ''template<''
What's right before the line you've shown? My guess is, you've
defined a class there but forgot to add a semicolon after the
closing brace.
actually the error comes on the line after it.
template <class T> // line 25.
char is_op_test(T const&);
Right - because you are missing a semicolon at the end of the previous
line (after [2]).
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- c2143 syntax errors.
- From: cablepuff@xxxxxxxxx
- Re: c2143 syntax errors.
- From: Igor Tandetnik
- Re: c2143 syntax errors.
- From: cablepuff@xxxxxxxxx
- c2143 syntax errors.
- Prev by Date: Re: Threads
- Next by Date: “ Page Setup ” and “ # of copies ” should be specific to each print job.
- Previous by thread: Re: c2143 syntax errors.
- Next by thread: Re: using printf for uchar* datatype
- Index(es):
Relevant Pages
|