summaryrefslogtreecommitdiff
path: root/TAO/tao/Policy_Manager.cpp
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-01-10 23:57:42 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-01-10 23:57:42 +0000
commit59cef110ec37e5472f7407cba617192dec9fc4c4 (patch)
treec4a2c97cbe863a33bd4c3fc21ae9ae70229a68f7 /TAO/tao/Policy_Manager.cpp
parent0cbc9385a50ce3c306172e63481ee0bd306b5d73 (diff)
downloadATCD-59cef110ec37e5472f7407cba617192dec9fc4c4.tar.gz
ChangeLogTag:Wed Jan 10 15:57:42 2001 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'TAO/tao/Policy_Manager.cpp')
-rw-r--r--TAO/tao/Policy_Manager.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/TAO/tao/Policy_Manager.cpp b/TAO/tao/Policy_Manager.cpp
index 616fa611e3f..4a2e7cb22f1 100644
--- a/TAO/tao/Policy_Manager.cpp
+++ b/TAO/tao/Policy_Manager.cpp
@@ -287,7 +287,13 @@ TAO_Policy_Manager_Impl::set_policy_overrides (
for (CORBA::ULong i = 0; i < policies.length (); ++i)
{
- CORBA::Policy_var policy = policies[i];
+ // Because MSVC has a bug, we had to replace
+ // a simple CORBA::Policy_var policy = policies[i];
+ // with the following lines.
+ const CORBA::Policy_var &const_policy =
+ ACE_static_cast (const CORBA::Policy_var &, policies[i]);
+ CORBA::Policy_var policy = const_policy;
+
if (CORBA::is_nil (policy.in ()))
continue;