From 0b471df0c3883bb04103f006192652e6d6eb6807 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 24 Dec 2014 04:55:56 +0100 Subject: [PATCH] fix clang compilation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: call to function 'operator>>' that is neither visible in the template definition nor found by argument-dependent lookup. 'operator>>' should be declared prior to the call site. IOW. types.h must be included before using ‘ss >> (T) value’ in template in pbd/configuration.h --- gtk2_ardour/option_editor.cc | 1 + libs/ardour/ardour/rc_configuration.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 7ff5bc5adb..9fb367dfc9 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -22,6 +22,7 @@ #include #include "gtkmm2ext/utils.h" +#include "ardour/types.h" #include "pbd/configuration.h" #include "ardour/rc_configuration.h" diff --git a/libs/ardour/ardour/rc_configuration.h b/libs/ardour/ardour/rc_configuration.h index 413f1699d3..9f62edd4fb 100644 --- a/libs/ardour/ardour/rc_configuration.h +++ b/libs/ardour/ardour/rc_configuration.h @@ -23,10 +23,10 @@ #include #include +#include "ardour/types.h" #include "pbd/configuration.h" #include "ardour/libardour_visibility.h" -#include "ardour/types.h" #include "ardour/utils.h" class XMLNode;