grpc/test
AJ Heller be4d2a6d8b [core] Ensure ChannelArgs::SetObject only allows conforming shared_ptr<T> classes (#35008)
ChannelArgs shared_ptr only supports types that extend `enable_shared_from_this`. `args.SetObject<shared_ptr<X>>(x)` with a non-comforming type X will now fail with something like:

```
./src/core/lib/channel/channel_args.h:453:12: error: no matching member function for call to 'Set'
    return Set(ChannelArgNameTraits<T>::ChannelArgName(), std::move(p));
           ^~~
test/core/channel/channel_args_test.cc:352:32: note: in instantiation of function template specialization 'grpc_core::ChannelArgs::SetObject<X>' requested here
  grpc_core::ChannelArgs b = a.SetObject(x);
                               ^
..
```

Closes #35008

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35008 from drfloob:channel-args-cant-set-unsupported-shared-ptr-type dc93f27ac7
PiperOrigin-RevId: 586766674
2023-11-30 13:17:27 -08:00
..
build Remove epollex poller (#29160) 2022-03-21 10:27:52 -07:00
build_test Make Buildifier Sanity Test Strict (#27807) 2021-11-03 14:57:04 -07:00
core [core] Ensure ChannelArgs::SetObject only allows conforming shared_ptr<T> classes (#35008) 2023-11-30 13:17:27 -08:00
cpp Internal change 2023-11-27 21:41:47 +00:00
csharp/codegen [csharp codegen] Handle empty base_namespace option value to fix #34113 (#34137) 2023-08-29 14:24:52 +00:00
distrib [deps] Upgrade protobuf version to v25.0 (#34513) 2023-11-10 00:11:09 -08:00
http2_test [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
spm_build Remove `g_glip` and `class GrpcLibraryInterface` (#30414) 2022-11-14 15:30:09 -05:00
.clang-tidy Fix all instances of bugprone-undefined-memory-manipulation 2018-08-29 14:24:02 -07:00