Internal change
PiperOrigin-RevId: 490159674
This commit is contained in:
parent
7c9fc9a642
commit
54a684717f
|
@ -31,8 +31,8 @@ class AttachmentBase {};
|
||||||
template <class Context, class T>
|
template <class Context, class T>
|
||||||
class Attachment : public AttachmentBase<Context> {
|
class Attachment : public AttachmentBase<Context> {
|
||||||
public:
|
public:
|
||||||
using FactoryT = std::function<AttachmentPtr<T>(Context&)>;
|
using FactoryT = AttachmentPtr<T> (*)(Context&);
|
||||||
Attachment(FactoryT factory) : factory_(factory) {}
|
explicit constexpr Attachment(FactoryT factory) : factory_(factory) {}
|
||||||
|
|
||||||
Attachment(const Attachment&) = delete;
|
Attachment(const Attachment&) = delete;
|
||||||
Attachment(Attachment&&) = delete;
|
Attachment(Attachment&&) = delete;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user