www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Trying to use contracts

↑ ↓ ← Kramer <Kramer_member pathlink.com> writes:
I'm trying to use contracts as talked about here:
http://www.digitalmars.com/ctg/contract.html, but the compiler is balking.

The first error is this: Error: '__stl_in' is not in function parameter list

I'm following the style that is on the DbC page; I'm also throwing the -D
switch, but nothing.  Anything off hand that I might be missing?

-Kramer
Jun 14 2005
↑ ↓ "Walter" <newshound digitalmars.com> writes:
"Kramer" <Kramer_member pathlink.com> wrote in message
news:d8muef$19e7$1 digitaldaemon.com...
 I'm trying to use contracts as talked about here:
 http://www.digitalmars.com/ctg/contract.html, but the compiler is balking.

 The first error is this: Error: '__stl_in' is not in function parameter

 I'm following the style that is on the DbC page; I'm also throwing the -D
 switch, but nothing.  Anything off hand that I might be missing?

Sadly, STLPort uses __in as a variable name, so a macro is used to replace it with __stl_in. You might try: #undef __in after your #include's.
Jun 14 2005
↑ ↓ → Kramer <Kramer_member pathlink.com> writes:
Sweet.  Thanks!

-Kramer

In article <d8ojpc$2nlu$2 digitaldaemon.com>, Walter says...
"Kramer" <Kramer_member pathlink.com> wrote in message
news:d8muef$19e7$1 digitaldaemon.com...
 I'm trying to use contracts as talked about here:
 http://www.digitalmars.com/ctg/contract.html, but the compiler is balking.

 The first error is this: Error: '__stl_in' is not in function parameter

 I'm following the style that is on the DbC page; I'm also throwing the -D
 switch, but nothing.  Anything off hand that I might be missing?

Sadly, STLPort uses __in as a variable name, so a macro is used to replace it with __stl_in. You might try: #undef __in after your #include's.

Jun 16 2005