Reduce reliance on boost - the easy part

* boost::unordered_map -> std::unordered_map
* BOOST_STATIC_ASSERT/static_assert
* BOOST_FOREACH -> for
* boost::tuple -> std::tuple/g
* boost::math::isnormal -> std::isnormal
* boost::container::set -> std::set
* boost::none -> std::nullopt
* boost::optional -> std::optional
This commit is contained in:
Robin Gareus 2024-10-19 02:23:13 +02:00
parent 168b917730
commit ff95d81612
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
58 changed files with 144 additions and 155 deletions

View file

@ -1,7 +1,7 @@
#ifndef __gtk2_ardour_ghost_event_h__
#define __gtk2_ardour_ghost_event_h__
#include <boost/unordered_map.hpp>
#include <unordered_map>
#include <sigc++/trackable.h>
#include "evoral/Note.h"
@ -28,7 +28,7 @@ class GhostEvent : public sigc::trackable
/* must match typedef in NoteBase */
typedef Evoral::Note<Temporal::Beats> NoteType;
typedef boost::unordered_map<std::shared_ptr<NoteType>, GhostEvent* > EventList;
typedef std::unordered_map<std::shared_ptr<NoteType>, GhostEvent* > EventList;
static GhostEvent* find (std::shared_ptr<NoteType> parent, EventList& events, EventList::iterator& opti);
};