summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-28 10:15:01 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-28 10:15:01 -0500
commit83bdb3bd0ce5ca6301aec047c1886c8d00e34085 (patch)
tree2f2010e6a6d3e9c3522c2de61bdb15e29b1d28e5 /include
parent2ce555077458bbb2f36a9076edd312d3293ad56f (diff)
chore: basic_url has new ref_type, new deprecated macros.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/ocl/core/config.hpp3
-rw-r--r--include/ocl/net/url.hpp6
-rw-r--r--include/ocl/simd/basic_simd.hpp12
-rw-r--r--include/ocl/simd/simd.hpp2
4 files changed, 16 insertions, 7 deletions
diff --git a/include/ocl/core/config.hpp b/include/ocl/core/config.hpp
index 7e74c81..4fdfc4e 100644
--- a/include/ocl/core/config.hpp
+++ b/include/ocl/core/config.hpp
@@ -23,6 +23,9 @@
#include <sys/types.h>
#include <unistd.h>
+#define OCL_DEPRECATED() [[deprecated]]
+#define OCL_DEPRECATED_MSG(MSG) [[deprecated( MSG )]]
+
#ifdef __cplusplus
/// DLL/Dylib/So specific macro.
#define OCL_EXPORT_DECL extern "C" BOOST_SYMBOL_EXPORT
diff --git a/include/ocl/net/url.hpp b/include/ocl/net/url.hpp
index 1b5f80c..361cd66 100644
--- a/include/ocl/net/url.hpp
+++ b/include/ocl/net/url.hpp
@@ -23,7 +23,7 @@ namespace ocl::net
class basic_url final
{
public:
- using reference = basic_url&;
+ using ref_type = basic_url&;
enum
{
@@ -76,7 +76,7 @@ namespace ocl::net
basic_url(const basic_url&) = default;
private:
- reference operator/=(const std::basic_string<char_type>& in)
+ ref_type operator/=(const std::basic_string<char_type>& in)
{
if (in.empty())
return *this;
@@ -91,7 +91,7 @@ namespace ocl::net
return *this;
}
- reference operator/=(const char_type& in)
+ ref_type operator/=(const char_type& in)
{
m_ss_ += in;
return *this;
diff --git a/include/ocl/simd/basic_simd.hpp b/include/ocl/simd/basic_simd.hpp
index 7fba26b..d9d405e 100644
--- a/include/ocl/simd/basic_simd.hpp
+++ b/include/ocl/simd/basic_simd.hpp
@@ -11,18 +11,24 @@
#ifdef __x86_64__
#include <immintrin.h>
-using simd_type = __m256;
#endif
#ifdef __aarch64__
#include <arm_neon.h>
-using simd_type = float32x4_t;
#endif
namespace ocl::simd
{
- struct basic_simd final
+ struct OCL_DEPRECATED_MSG("Unmaintained since v1.0.51") basic_simd final
{
+#ifdef __x86_64__
+ using simd_type = __m256;
+#endif
+
+#ifdef __aarch64__
+ using simd_type = float32x4_t;
+#endif
+
struct simd_traits final
{
simd_type __val;
diff --git a/include/ocl/simd/simd.hpp b/include/ocl/simd/simd.hpp
index 92bb713..14d6922 100644
--- a/include/ocl/simd/simd.hpp
+++ b/include/ocl/simd/simd.hpp
@@ -15,7 +15,7 @@
namespace ocl::simd
{
template <typename backend_type>
- class real_type
+ class OCL_DEPRECATED_MSG("Unmaintained since v1.0.51") real_type
{
private:
backend_type backend_;