From 95aff00802baf393cbabfcb05198ffc5f9979460 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 23 May 2011 20:20:17 +0000 Subject: Apply patch from pgiblox in ticket #694 to fix compilation without Raul::IntrusivePtr: "Since Raul::IntrusivePtr was removed, ingen_server no longer compiles. We could either add another #define for IntrusivePtr, or just use boost::intrusive_ptr directly. Going with the direct approach since server seems to use boost::shared_ptr directly as well." I would like easy portability to c++0x pointers, but unfortunately there is no intrusive_ptr there... it's an easy search/replace anyway, so this will do for now. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3307 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/events/RequestMetadata.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/server/events') diff --git a/src/server/events/RequestMetadata.cpp b/src/server/events/RequestMetadata.cpp index 156fb51d..597a831b 100644 --- a/src/server/events/RequestMetadata.cpp +++ b/src/server/events/RequestMetadata.cpp @@ -15,7 +15,7 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "raul/IntrusivePtr.hpp" +#include #include "ingen/ClientInterface.hpp" #include "events/RequestMetadata.hpp" #include "shared/LV2Atom.hpp" @@ -89,11 +89,13 @@ RequestMetadata::execute(ProcessContext& context) if (_special_type == PORT_VALUE) { PortImpl* port = dynamic_cast(_resource); if (port) { - IntrusivePtr abuf = PtrCast(port->buffer(0)); + boost::intrusive_ptr abuf = + boost::dynamic_pointer_cast(port->buffer(0)); if (abuf) { _value = abuf->value_at(0); } else { - IntrusivePtr obuf = PtrCast(port->buffer(0)); + boost::intrusive_ptr obuf = + boost::dynamic_pointer_cast(port->buffer(0)); if (obuf) { Ingen::Shared::LV2Atom::to_atom(*_engine.world()->uris().get(), obuf->atom(), -- cgit v1.2.1