mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-07 10:12:53 +03:00
As pointed out in issue #368 [1], C++ officially forbids aggregate initialization for non-aggegrates. This change therefore introduces a template function coap_make_str_const() that creates and initializes an automatic variable that is moved to the caller on exit. Note that at least -std=c++14 is required. Fixes #368. [1] https://github.com/obgm/libcoap/issues/368