FreeBSD Bugzilla – Attachment 247517 Details for
Bug 276187
devel/cpprestsdk: json.h breaks with the FreeBSD std::unique_ptr
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch files to de-inline the failing constructor and destructor
fix-unique-ptr-json-header.diff (text/plain), 1.70 KB, created by
Jan-Espen Oversand
on 2024-01-07 21:26:44 UTC
(
hide
)
Description:
Patch files to de-inline the failing constructor and destructor
Filename:
MIME Type:
Creator:
Jan-Espen Oversand
Created:
2024-01-07 21:26:44 UTC
Size:
1.70 KB
patch
obsolete
>--- a/devel/cpprestsdk/Makefile >+++ b/devel/cpprestsdk/Makefile >@@ -1,5 +1,6 @@ > PORTNAME= cpprestsdk > PORTVERSION= 2.10.18 >+PORTREVISION= 1 > DISTVERSIONPREFIX= v > CATEGORIES= devel > >--- /dev/null 2024-01-07 21:18:33.948705000 +0100 >+++ b/devel/cpprestsdk/files/patch-include_cpprest_json.h 2024-01-07 20:32:02.406373000 +0100 >@@ -0,0 +1,20 @@ >+--- include/cpprest/json.h.orig 2023-12-05 04:23:31 UTC >++++ include/cpprest/json.h >+@@ -737,12 +737,13 @@ class value (private) >+ _ASYNCRTIMP void format(std::basic_string<char>& string) const; >+ >+ #ifdef ENABLE_JSON_VALUE_VISUALIZER >+- explicit value(std::unique_ptr<details::_Value> v, value_type kind) : m_value(std::move(v)), m_kind(kind) >++ explicit value(std::unique_ptr<details::_Value> v, value_type kind); >+ #else >+- explicit value(std::unique_ptr<details::_Value> v) : m_value(std::move(v)) >++ explicit value(std::unique_ptr<details::_Value> v); >+ #endif >+- { >+- } >++public: >++ ~value() noexcept; >++private: >+ >+ std::unique_ptr<details::_Value> m_value; >+ #ifdef ENABLE_JSON_VALUE_VISUALIZER >--- /dev/null 2024-01-07 21:18:45.892744000 +0100 >+++ b/devel/cpprestsdk/files/patch-src_json_json.cpp 2024-01-07 20:35:43.286876000 +0100 >@@ -0,0 +1,19 @@ >+--- src/json/json.cpp.orig 2023-12-05 04:23:31 UTC >++++ src/json/json.cpp >+@@ -495,3 +495,16 @@ const web::json::details::json_error_category_impl& we >+ #endif >+ return instance; >+ } >++ >++#ifdef ENABLE_JSON_VALUE_VISUALIZER >++web::json::value::value(std::unique_ptr<details::_Value> v, value_type kind) : m_value(std::move(v) >++), m_kind(kind) >++#else >++web::json::value::value(std::unique_ptr<details::_Value> v) : m_value(std::move(v)) >++#endif >++{ >++} >++ >++web::json::value::~value() noexcept >++{ >++}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 276187
: 247517