Re: For 0.9? Avoiding string copy
liam mail <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
2009/12/13 Daniel Wallin <[email protected]> > Kristoffer Danielsson wrote: > > Hmm... obviously, I included windows.h and min() and max() were defined. > > > > > > > > I believe you can patch luabind to explicitly not use these defines, as > described here: > > > > http://article.gmane.org/gmane.comp.lang.lua.bind.user/939 > > Yes, thanks. Fixed in the 0.9 branch. > > -- > Daniel Wallin > BoostPro Computing > http://www.boostpro.com > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > luabind-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/luabind-user > Actually the better method is not to use the define yet wrap the function calls in parenthesis. For example (std::limits<int>::max)() exspecially if you use a max or min in a header which user code will see, as this removes the need for the user to also use the macro. ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ luabind-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luabind-user