Skip to content

Commit

Permalink
C++11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandreichweinbmw committed Dec 27, 2024
1 parent b2961d8 commit 1575191
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/etl/unaligned_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -821,15 +821,15 @@ namespace etl
//*************************************************************************
/// Const storage access.
//*************************************************************************
ETL_CONSTEXPR const storage_value_type* data() const
ETL_CONSTEXPR14 const storage_value_type* data() const
{
return storage;
}

//*************************************************************************
/// Storage access.
//*************************************************************************
ETL_CONSTEXPR storage_value_type* data()
ETL_CONSTEXPR14 storage_value_type* data()
{
return storage;
}
Expand Down Expand Up @@ -897,7 +897,7 @@ namespace etl
//*************************************************************************
/// Constructor from const pointer.
//*************************************************************************
ETL_CONSTEXPR explicit unaligned_type_ext(const void* address, size_t buffer_size = sizeof(T))
ETL_CONSTEXPR14 explicit unaligned_type_ext(const void* address, size_t buffer_size = sizeof(T))
: storage(static_cast<const storage_value_type*>(address))
{
ETL_ASSERT(sizeof(T) <= buffer_size, ETL_ERROR(etl::unaligned_type_buffer_size));
Expand All @@ -906,7 +906,7 @@ namespace etl
//*************************************************************************
/// Constructor from pointer.
//*************************************************************************
ETL_CONSTEXPR explicit unaligned_type_ext(void* address, size_t buffer_size = sizeof(T))
ETL_CONSTEXPR14 explicit unaligned_type_ext(void* address, size_t buffer_size = sizeof(T))
: storage(static_cast<storage_value_type*>(address))
{
ETL_ASSERT(sizeof(T) <= buffer_size, ETL_ERROR(etl::unaligned_type_buffer_size));
Expand Down Expand Up @@ -977,15 +977,15 @@ namespace etl
//*************************************************************************
/// Const storage access.
//*************************************************************************
ETL_CONSTEXPR const storage_value_type* data() const
ETL_CONSTEXPR14 const storage_value_type* data() const
{
return storage;
}

//*************************************************************************
/// Storage access.
//*************************************************************************
ETL_CONSTEXPR storage_value_type* data()
ETL_CONSTEXPR14 storage_value_type* data()
{
return storage;
}
Expand Down

0 comments on commit 1575191

Please sign in to comment.