summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-04-14 00:46:19 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-04-14 01:06:57 -0300
commiteaa6961378158f1570ba446011bef777b43f9a58 (patch)
treee21cd12f82643a37ea242b0e8a0ca6b928fc7ad0 /src/bindings
parentb55a8104ad7503a0d3a425a612a0bd380887ed99 (diff)
eina-cxx: Fix compilation error on clang
Clang implicitly deletes the default-constructor on range_ptrlist, which must be explicitly defined.
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/eina_cxx/eina_ptrlist.hh6
-rw-r--r--src/bindings/eina_cxx/eina_range_types.hh12
2 files changed, 18 insertions, 0 deletions
diff --git a/src/bindings/eina_cxx/eina_ptrlist.hh b/src/bindings/eina_cxx/eina_ptrlist.hh
index e06f436a19..2f18d10ffb 100644
--- a/src/bindings/eina_cxx/eina_ptrlist.hh
+++ b/src/bindings/eina_cxx/eina_ptrlist.hh
@@ -283,6 +283,12 @@ struct range_ptr_list : _range_template<T, _ptr_list_access_traits>
283 typedef typename _base_type::native_handle_type native_handle_type; /** Type for the native Eina list handle. */ 283 typedef typename _base_type::native_handle_type native_handle_type; /** Type for the native Eina list handle. */
284 284
285 /** 285 /**
286 * @brief Creates a singular range
287 */
288 range_ptr_list()
289 {}
290
291 /**
286 * @brief Creates a range from a native Eina list handle. 292 * @brief Creates a range from a native Eina list handle.
287 */ 293 */
288 range_ptr_list(native_handle_type list) 294 range_ptr_list(native_handle_type list)
diff --git a/src/bindings/eina_cxx/eina_range_types.hh b/src/bindings/eina_cxx/eina_range_types.hh
index 4c60221390..844e2ef4cc 100644
--- a/src/bindings/eina_cxx/eina_range_types.hh
+++ b/src/bindings/eina_cxx/eina_range_types.hh
@@ -38,6 +38,12 @@ struct _const_range_template
38 typedef _const_range_template<T, Traits> _self_type; /**< Type of the range itself. */ 38 typedef _const_range_template<T, Traits> _self_type; /**< Type of the range itself. */
39 39
40 /** 40 /**
41 * @brief Creates a singular range object
42 */
43 _const_range_template()
44 {}
45
46 /**
41 * @brief Creates a range object wrapping the given native container handle. 47 * @brief Creates a range object wrapping the given native container handle.
42 */ 48 */
43 _const_range_template(native_handle_type handle) 49 _const_range_template(native_handle_type handle)
@@ -370,6 +376,12 @@ struct _range_template : private std::conditional
370 typedef typename _base_type::difference_type difference_type; /**< Type to represent the distance between two iterators. */ 376 typedef typename _base_type::difference_type difference_type; /**< Type to represent the distance between two iterators. */
371 377
372 /** 378 /**
379 * @brief Creates a singular range object
380 */
381 _range_template()
382 {}
383
384 /**
373 * @brief Creates a range object wrapping the given native container handle. 385 * @brief Creates a range object wrapping the given native container handle.
374 */ 386 */
375 _range_template(native_handle_type handle) 387 _range_template(native_handle_type handle)