X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Fstd-vector.hh;h=589f7c0db2063a2110241668c5d2ac7ba39d39ce;hb=2bbacb364aa29041af9cbbbd32cfad2e8e387cb3;hp=2480ecb93a96754d81fd81fb459334553a46fd60;hpb=82bc9ad690e201aaa55694f8b92261ae7338f56a;p=lilypond.git diff --git a/flower/include/std-vector.hh b/flower/include/std-vector.hh index 2480ecb93a..589f7c0db2 100644 --- a/flower/include/std-vector.hh +++ b/flower/include/std-vector.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2006--2014 Jan Nieuwenhuizen + Copyright (C) 2006--2015 Jan Nieuwenhuizen LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,7 +25,7 @@ /* leads to dubious crashes - libstdc++ bug? */ -#ifndef NDEBUG +#ifdef DEBUG #define _GLIBCXX_DEBUG 1 #endif #endif @@ -68,56 +68,7 @@ typedef size_t vsize; #define VPOS ((vsize) -1) #endif -#if HAVE_STL_DATA_METHOD #include -#else /* !HAVE_STL_DATA_METHOD */ -#define vector __flower_vector -#include -#undef vector - -namespace std -{ - -/* Interface without pointer arithmetic (iterator) semantics. */ -template > -class vector : public __flower_vector -{ -public: - typedef typename __flower_vector::iterator iterator; - typedef typename __flower_vector::const_iterator const_iterator; - - vector () : __flower_vector () - { - } - - vector (size_t n) : __flower_vector (n) - { - } - - vector (vector const &v) : __flower_vector (v) - { - } - - vector (const_iterator b, const_iterator e) : __flower_vector (b, e) - { - } - - T * - data () - { - return &(*this)[0]; - } - - T const * - data () const - { - return &(*this)[0]; - } -}; - -} /* namespace std */ - -#endif /* !HAVE_STL_DATA_METHOD */ template T const &