]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#99,!197] Added a warning as a result of review.
authorMarcin Siodelski <marcin@isc.org>
Fri, 11 Jan 2019 18:43:48 +0000 (19:43 +0100)
committerMarcin Siodelski <marcin@isc.org>
Mon, 14 Jan 2019 12:18:47 +0000 (07:18 -0500)
src/lib/dhcpsrv/cfg_subnets4.h

index 0d35e31b069113bc7523f33f04b128bc44868ad8..de15add4c14df92a054aa69e0be562948c37e256 100644 (file)
@@ -80,6 +80,12 @@ public:
     ///   will hold the instance of the new subnet with the shared network
     ///   it originally belonged to.
     ///
+    /// @warning The merge operation affects the @c other configuration.
+    /// Therefore, the caller must not rely on the data held in the @c other
+    /// object after the call to @c merge. Also, the data held in @c other must
+    /// not be modified after the call to @c merge because it may affect the
+    /// merged configuration.
+    ///
     /// @param other the subnet configuration to be merged into this
     /// configuration.
     void merge(const CfgSubnets4& other);