Parcourir la source

[trac550] added a comment about strong exception guarantee implication.

JINMEI Tatuya il y a 14 ans
Parent
commit
f1885e6e7b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/lib/datasrc/memory_datasrc.cc

+ 2 - 0
src/lib/datasrc/memory_datasrc.cc

@@ -206,6 +206,8 @@ struct MemoryZone::MemoryZoneImpl {
 
         // Add wildcards possibly contained in the owner name to the domain
         // tree.
+        // Note: this can throw an exception, breaking strong exception
+        // guarantee.  (see also the note for contextCheck() below).
         addWildcards(*domains, name);
 
         // Get the node