Re: c2143 syntax errors.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



<cablepuff@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.
--
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


.



Relevant Pages

  • Re: c2143 syntax errors.
    ... Right - because you are missing a semicolon at the end of the previous ... overhead. ... -- RFC 1925 ...
    (microsoft.public.vc.language)
  • Re: c2143 syntax errors.
    ... class there but forgot to add a semicolon after the closing brace. ... -- RFC 1925 ...
    (microsoft.public.vc.language)
  • Re: Removing text from strings
    ... is left off then it causes a syntax error but adding fixes that error. ... I gave examples in the thread you are replying to where adding the semicolon changes the meaning of the code. ... And I would be totally shocked if it made that much difference in a real world application where having them there made any noticable difference in speed of execution. ... "Hey Louie, I just shaved 60 ms off the 218 seconds it takes this script to execute by adding 380,000 semicolons to this script but it added 180 ...
    (comp.lang.javascript)
  • Re: Ot: opinions vs facts
    ... Always use for all your logical block ... Always end a command with semicolon; ... ASP pages ('mixin' of server-side VBScript and client-side JScript) ... a semicolon is a syntax error, ...
    (comp.lang.javascript)
  • Re: Also on automatic semi-colon insertion ...
    ... throw [no LineTerminator here] Expression; ... so 'throw' followed by a line terminator is not allowed, ... It causes a lonely 'return' to be followed by a semicolon, ... What the browser, etc, does with the syntax error after reporting ...
    (comp.lang.javascript)