]> git.netwichtig.de Git - user/henk/code/inspircd.git/commit
Rework dynamic_reference management, introduce dynamic_reference_nocheck
authorattilamolnar <attilamolnar@hush.com>
Thu, 4 Apr 2013 20:09:21 +0000 (22:09 +0200)
committerattilamolnar <attilamolnar@hush.com>
Mon, 8 Apr 2013 21:13:24 +0000 (23:13 +0200)
commit927937d6105d17fbcd8c85bbf185477d87264bc4
treeef5ab7eb5c0bd6ebfce721b99e1464183a09a364
parent9fc218c005543384bcad73747a0574c8c6ab6289
Rework dynamic_reference management, introduce dynamic_reference_nocheck

New dynamic references are now resolved at construction and all of them are re-resolved when a relevant service is added or removed; resolution is no longer done in operator->

dynamic_reference_nocheck is a variant of dynamic_reference that does not check for value being null in operator-> / operator*
dynamic_reference still throws an exception when used in this case

Both kinds of dynamic references support .check(): an exception is thrown if this is called when value is null
include/modules.h
src/inspircd.cpp
src/modules.cpp