eina-cxx: Fix compilation error on clang

Clang implicitly deletes the default-constructor on range_ptrlist, which must be explicitly defined.
This commit is contained in:
Felipe Magno de Almeida 2015-04-14 00:46:19 -03:00
parent b55a8104ad
commit eaa6961378
2 changed files with 18 additions and 0 deletions

View File

@ -282,6 +282,12 @@ struct range_ptr_list : _range_template<T, _ptr_list_access_traits>
typedef typename _base_type::value_type value_type; /**< The type of each element. */
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.
*/

View File

@ -37,6 +37,12 @@ struct _const_range_template
typedef typename Traits::template const_native_handle<T>::type native_handle_type; /**< Type for the native handle of the container. */
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.
*/
@ -369,6 +375,12 @@ struct _range_template : private std::conditional
typedef typename _base_type::size_type size_type; /**< Type for size information. */
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.
*/