Thread overview |
---|
June 14, 2005 Trying to use contracts | ||||
---|---|---|---|---|
| ||||
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 |
June 15, 2005 Re: Trying to use contracts | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kramer | "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 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? 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. |
June 16, 2005 Re: Trying to use contracts | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | 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 >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? > >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. > > |
Copyright © 1999-2021 by the D Language Foundation