File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ struct Reference {
3535 string repr () const ;
3636};
3737
38+ template <class StreamT >
39+ StreamT& operator << (StreamT& stream, const Reference& reference) {
40+ return stream << reference.repr ();
41+ }
42+
3843class ConfigCompilerPlugin ;
3944class ResourceResolver ;
4045struct Dependency ;
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ struct Dependency {
3232 virtual bool Resolve (ConfigCompiler* compiler) = 0;
3333};
3434
35- template <class StreamT , class RepresentableT >
36- StreamT& operator << (StreamT& stream, const RepresentableT& representable ) {
37- return stream << representable .repr ();
35+ template <class StreamT >
36+ StreamT& operator << (StreamT& stream, const Dependency& dependency ) {
37+ return stream << dependency .repr ();
3838}
3939
4040struct PendingChild : Dependency {
You can’t perform that action at this time.
0 commit comments