[Webkit-unassigned] [Bug 182081] [Win] MSVC doesn't seem to like "friend class NeverDestroyed<Foo>"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 24 19:22:13 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=182081
--- Comment #3 from Fujii Hironori <Hironori.Fujii at sony.com> ---
https://timsong-cpp.github.io/cppwp/n4140/temp.friend
> template<class T> class task;
> template<class T> task<T>* preempt(task<T>*);
>
> template<class T> class task {
> friend void next_time();
> friend void process(task<T>*);
> friend task<T>* preempt<T>(task<T>*);
> template<class C> friend int func(C);
>
> friend class task<int>;
> template<class P> friend class frd;
> };
[...]
> [...] Similarly, each specialization of the task class template has the class template specialization task<int> as a friend, [...]
If I understand correctly, "friend class NeverDestroyed<Foo>" is a valid style.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180125/0b934e53/attachment.html>
More information about the webkit-unassigned
mailing list