File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ namespace mbed {
82
82
* There is a subtle bug in this code, the function get_connection returns a
83
83
* reference to a Connection which is captured by value instead of reference.
84
84
*
85
- * When the reference get_connection returns is copied into connection, the
86
- * vtable and others members defined in Connection are copied, but members defined
87
- * in SerialConnection are left apart. This can cause severe crashes or bugs if
88
- * the virtual functions captured use members not present in the base
89
- * declaration.
85
+ * When `get_connection` returns a reference to serial_connection it is copied into
86
+ * the local variable connection. The vtable and others members defined in Connection
87
+ * are copied, but members defined in SerialConnection are left apart. This can cause
88
+ * severe crashes or bugs if the virtual functions captured use members not present
89
+ * in the base declaration.
90
90
*
91
91
* To solve that problem, the copy constructor and assignment operator have to
92
92
* be declared (but don't need to be defined) in the private section of the
You can’t perform that action at this time.
0 commit comments