Age | Commit message (Collapse) | Author |
|
Custom deleters of ScopedPtr are not currently fully conforming to
C++11's support for custom deleters in std::unique_ptr for the
sake of simplicity of implementation. Unlike in the standard
library, plain functions and lvalue references are not supported,
nor may custom deleters be passed to the constructor at runtime.
This can be improved in the future, if necessary, by doing what
standard library implementations usually do and creating a Pair
class that uses the Empty Base Optimization idiom to avoid extra
storage overhead of the deleter instance when it is not needed, as
in typical standard library implementations, plus some additional
type traits to support the necessary metaprogramming for the
different type overloads.
|
|
|
|
|
|
This does not change the use of defined for some NDS source files, since they
seem to be (based on?) third party code.
|
|
|
|
of a dispose flag.
|
|
|
|
|
|
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
|
|
|
|
The deletePointer() method approach cannot work, as it is called
by the destructor of the base class.
A possible correct solution would be to enhance ScopedPtr with a
"deleter" object like SharedPtr. But this seems overkill as long as we
need it in only one place.
svn-id: r54057
|
|
This merge was extremely difficult to carry out. It wasn't entirely SVN's fault -- there were several merges to the branch that were done by hand. Please check for any issues and regressions. Also note that the DS makefile was not copied over since the "one at a time" plugin mode currently has too much fragmentation ie. it doesn't work.
svn-id: r54051
|
|
svn-id: r52592
|
|
svn-id: r51094
|
|
- Introduced ReferenceType to SharedPtr and ScopedPtr
svn-id: r48337
|
|
svn-id: r48336
|
|
svn-id: r48334
|
|
svn-id: r47499
|
|
consistency
svn-id: r44634
|
|
formatting change.
svn-id: r38901
|
|
svn-id: r35481
|
|
svn-id: r34319
|
|
svn-id: r33401
|
|
svn-id: r33400
|
|
svn-id: r31447
|
|
svn-id: r31333
|
|
SharedPtr.
- Removed two failing comparison tests of SharedPtr in our test suite (those were not supported according to our documentation anyway)
svn-id: r31312
|
|
for gcc 2.95 though.
svn-id: r31311
|
|
- updated documentation accordingly
- clarified documentation about comparison operators of SharedPtr
svn-id: r31301
|
|
added two test cases for the comparision operators, which currently fail
svn-id: r31299
|
|
2.95 on BeOS)
svn-id: r31298
|
|
List".
Unlike the patch on the tracker this commit includes documentation for SharedPtr.
svn-id: r31287
|