diff options
Diffstat (limited to 'TAO/examples/Advanced/ch_18/client.cpp')
-rw-r--r-- | TAO/examples/Advanced/ch_18/client.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/TAO/examples/Advanced/ch_18/client.cpp b/TAO/examples/Advanced/ch_18/client.cpp index 1c2d28c3370..2b85967e1bc 100644 --- a/TAO/examples/Advanced/ch_18/client.cpp +++ b/TAO/examples/Advanced/ch_18/client.cpp @@ -279,7 +279,10 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) list = ctrl->list(); // Show details for each device. for ( i = 0; i < list->length(); i++) - std::cout << list[i]; + { + CCS::Thermometer_ptr ti = list[i]; + std::cout << ti; + } std::cout << std::endl; // Change the location of first device in the list @@ -290,7 +293,8 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) // Check that the location was updated std::cout << "New details for device " << anum << " are:" << std::endl; - std::cout << list[0u] << std::endl; + CCS::Thermometer_ptr tx = list[0u]; + std::cout << tx << std::endl; // Find first thermostat in list. CCS::Thermostat_var tmstat; |