eina-cxx: Fix compilation error on clang
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 14 Apr 2015 03:46:19 +0000 (00:46 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 14 Apr 2015 04:06:57 +0000 (01:06 -0300)
Clang implicitly deletes the default-constructor on range_ptrlist, which must be explicitly defined.

src/bindings/eina_cxx/eina_ptrlist.hh
src/bindings/eina_cxx/eina_range_types.hh

index e06f436..2f18d10 100644 (file)
@@ -283,6 +283,12 @@ struct range_ptr_list : _range_template<T, _ptr_list_access_traits>
   typedef typename _base_type::native_handle_type native_handle_type; /** Type for the native Eina list handle. */
 
   /**
+   * @brief Creates a singular range
+   */
+  range_ptr_list()
+  {}
+
+  /**
    * @brief Creates a range from a native Eina list handle.
    */
   range_ptr_list(native_handle_type list)
index 4c60221..844e2ef 100644 (file)
@@ -38,6 +38,12 @@ struct _const_range_template
   typedef _const_range_template<T, Traits> _self_type; /**< Type of the range itself.  */
 
   /**
+   * @brief Creates a singular range object
+   */
+  _const_range_template()
+  {}
+
+  /**
    * @brief Creates a range object wrapping the given native container handle.
    */
   _const_range_template(native_handle_type handle)
@@ -370,6 +376,12 @@ struct _range_template : private std::conditional
   typedef typename _base_type::difference_type difference_type; /**< Type to represent the distance between two iterators. */
 
   /**
+   * @brief Creates a singular range object
+   */
+  _range_template()
+  {}
+
+  /**
    * @brief Creates a range object wrapping the given native container handle.
    */
   _range_template(native_handle_type handle)