Commit Graph

20 Commits

Author SHA1 Message Date
Sam Edwards 7790f8429d general: Fully qualify header references into the std namespace
Closes #341
2018-06-07 10:35:12 +02:00
rdb 5e0ce969fe Work around clang 3.1 compile error with static constexpr
There is a bug in clang versions before 3.2 (including the one shipped with Xcode) that makes it give a "conflicting types" compile error when there is a static constexpr function defined outside the class.  The way to work around this is either to remove one of the "static" or "constexpr" keywords, or to simply put the definition inline.

See: https://stackoverflow.com/a/17494592/2135754

I would try and upgrade Xcode to version 5 to see if the problem is fixed, but the buildbot still runs OS X Lion (10.7) and the last version of Xcode that works on Lion is 4.6.3, so it seems easier to just apply these workarounds for now.
2018-05-24 14:34:03 +02:00
rdb 9fad3dba60 general: remove macros for compatibility with non-C++11 compilers
Now that we require MSVC 2015, we no longer need all this nonsense, so we can write cleaner code.
2018-05-23 23:33:05 +02:00
rdb e60d1e292e Make better use of C++ rules for implicit generation; allow PointerTo and some mutex impls to be static initialised 2017-01-12 12:34:15 +01:00
tobspr 0fcfb8e372 New file headers, new comment style 2016-02-17 17:47:48 +01:00
rdb 18ad6d1543 Replace many int params with size_t params where appropriate, and work towards fixing type conversion warnings 2015-10-07 18:58:26 +02:00
rdb 16e7831566 Remove executable permissions from files that don't need them 2015-04-05 15:41:49 +02:00
rdb 6db5d0dc11 Huge cppparser and interrogate overhaul, bringing:
* Better support for typedefs
* Same code should compile for both 32-bit and 64-bit
* C++11 typed enum support
* Synthesize __setitem__ when operator [] returns reference
* Rewrite coerce system to have better performance
* Change semantics of __getattr__ and __setattr__ to match
  Python's, add __getattribute__, __delattr__ and __delitem__
* Improve performance of slot functions a bit more
* Reduce memory overhead of type system
* Some support for wrapping arrays of numeric types
* C++11 character type support in cppparser
* Chars are handled as strings of length 1
* Template functions for CreatePyInstance that use runtime type map
* More functions from dtool as extension functions
* Code cleanup
2014-12-30 16:43:52 +01:00
David Rose d521ca04fa revert BitMask::operator bool--just a bad idea. 2009-02-11 00:31:34 +00:00
David Rose da684d4f49 operator bool 2009-02-10 23:34:22 +00:00
David Rose fb9c56432a we are now using the modified BSD license 2008-05-28 18:37:20 +00:00
Zachary Pavlov 220d33e006 okay, this is going to be a big commit. The basic idea here is to add transparent defines to allow for directory based dlls later. This will let us build tau again. ugggg 2007-07-20 23:02:51 +00:00
David Rose 8cfcf69cbe add get_lowest_on_bit(), etc 2007-06-26 19:40:32 +00:00
David Rose a71cd2a689 add get_num_on_bits(), etc. 2007-06-26 19:04:37 +00:00
David Rose 05b0adcbb5 64-bit collision traverser; add CollisionNode::set_collider_sort() 2007-04-05 15:34:36 +00:00
David Rose e43f4f5c64 fix morphs in character flattening; better support for flattening animated + unanimated 2007-02-16 19:19:19 +00:00
David Rose 9f198514ce add SparseArray 2007-02-15 20:59:08 +00:00
David Rose bf6bb54c31 copy BitArray by reference 2006-06-08 00:21:08 +00:00
David Rose 725e82e6f4 show_through() 2006-03-20 20:48:26 +00:00
David Rose ecec0779f0 BitArray (first pass) 2006-01-20 18:02:11 +00:00