boost-ext / di

C++14 Dependency Injection Library
https://boost-ext.github.io/di
1.13k stars 136 forks source link

Warning/Error on test bind_to_const_ref_sharedptr_via_placeholder #558

Open yuriv opened 5 months ago

yuriv commented 5 months ago

Expected Behavior

5

Actual Behavior

stop compiling on error .../di/include/boost/di.hpp:2464:41: error: returning reference to temporary [-Werror=return-local-addr] or Program terminated with signal: SIGSEGV on compile-time warning

Steps to Reproduce the Problem

  1. Go to https://godbolt.org/z/8asef5Ead
  2. Compile and run

Specifications