userver: proto_structs::UnbreakableDependencyCycle Struct Reference
Loading...
Searching...
No Matches
proto_structs::UnbreakableDependencyCycle Struct Referencefinal

#include </data/code/userver/libraries/proto-structs/include/userver/proto-structs/unbreakable_dependency_cycle.hpp>

Detailed Description

A type that is generated for a field that participates in an unbreakable dependency cycle.

For example:

struct A {
struct Inner {
B::Inner field;
};
};
struct B {
struct Inner {
A::Inner field;
};
};

Nested types cannot be forwarded and wrapped in utils::Box, so we give up. At least we generate something valid for other fields and types in the file, so that if the current field is not actually needed, then proto structs are usable.

Definition at line 31 of file unbreakable_dependency_cycle.hpp.

Public Member Functions

bool operator== (const UnbreakableDependencyCycle &other) const =delete
 

Member Function Documentation

◆ operator==()

bool proto_structs::UnbreakableDependencyCycle::operator== ( const UnbreakableDependencyCycle & other) const
delete

We cannot actually compare the contents of such field, because they are not parsed into proto structs. Transitively, any data structure containing such field is not comparable.


The documentation for this struct was generated from the following file: