Commit a97e36d6 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

a comment about not using badges with unknown callees

Reviewed By: Gownta

Differential Revision: D32747533

fbshipit-source-id: f3fe004797eeaf22ae1db85f27b547dc7ad7cfbc
parent 823ec7bd
...@@ -32,6 +32,10 @@ class any_badge; ...@@ -32,6 +32,10 @@ class any_badge;
* holders). Badge can only be constructed by the specified badge holder binding * holders). Badge can only be constructed by the specified badge holder binding
* the tagged functions to that call site. * the tagged functions to that call site.
* *
* As a rule, it is poor form to pass a badge to arbitrary code. It is poor form
* for virtual, type-erased, or template functions to accept badges or to be
* passed badges.
*
* Example: * Example:
* class ProtectedClass: { * class ProtectedClass: {
* ... * ...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment