Changeset 20314
- Timestamp:
- 06/21/07 15:02:13 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/branches/2.2/modules/jackal/config/jccl/Config/ConfigElement.h
r19729 r20314 176 176 } 177 177 178 // Specializations of getProperty<T> placed inline for Visual Studio 7.179 // MIPSpro and GCC do not handle this. They get out-of-line180 // specializations, found below.181 #if defined(_MSC_VER) && _MSC_VER == 1300182 template<>183 std::string getProperty<std::string>(const std::string& prop, int ind) const184 {185 std::string prop_string = getPropertyString(prop,ind);186 return prop_string;187 }188 189 /**190 * Specialization for booleans so that we can read "true" and "false" rather191 * than "1" and "0".192 */193 template<>194 bool getProperty<bool>(const std::string& prop, int ind) const195 {196 return getProperty_bool(prop, ind);197 }198 199 template<>200 ConfigElementPtr getProperty<ConfigElementPtr>(const std::string& prop,201 int ind) const202 {203 return getProperty_ElementPtr(prop, ind);204 }205 #endif /* defined(_MSC_VER) && _MSC_VER == 1300 */206 207 178 /** 208 179 * Gets value that defaults to property 0. … … 213 184 * index within the std::string and ConfigElementPtr specializations. 214 185 */ 215 #if defined(_MSC_VER) && _MSC_VER == 1300216 template<class T>217 T getProperty(const std::string& prop) const218 {219 return getProperty<T>(prop, 0);220 }221 #else222 186 template<class T> 223 187 T getProperty(const std::string& prop) const; 224 #endif225 188 226 189 /** … … 326 289 }; 327 290 328 #if ! defined(_MSC_VER) || _MSC_VER > 1300329 291 template<> 330 292 inline std::string ConfigElement::getProperty<std::string>(const std::string& prop, int ind) const … … 359 321 return getProperty<T>(prop, 0); 360 322 } 361 #endif /* ! defined(_MSC_VER) || _MSC_VER > 1300 */362 323 363 324 } // namespace jccl
