|  | 
| 3 | 3 | #include "key.h" | 
| 4 | 4 | #include "neuralnet/cpid.h" | 
| 5 | 5 | 
 | 
| 6 |  | -#include <boost/optional.hpp> | 
| 7 | 6 | #include <boost/variant/get.hpp> | 
| 8 | 7 | #include <boost/variant/variant.hpp> | 
| 9 | 8 | #include <map> | 
| @@ -90,10 +89,10 @@ struct MiningProject | 
| 90 | 89 | }; | 
| 91 | 90 | 
 | 
| 92 | 91 | //! | 
| 93 |  | -//! \brief An optional type that either contains a reference to some local BOINC | 
| 94 |  | -//! project or does not. | 
|  | 92 | +//! \brief An optional type that either points to some local BOINC project or | 
|  | 93 | +//! does not. | 
| 95 | 94 | //! | 
| 96 |  | -typedef boost::optional<const MiningProject&> ProjectOption; | 
|  | 95 | +typedef const MiningProject* ProjectOption; | 
| 97 | 96 | 
 | 
| 98 | 97 | //! | 
| 99 | 98 | //! \brief Contains a local set of BOINC projects loaded from client_state.xml. | 
| @@ -228,18 +227,18 @@ class AdvertiseBeaconResult | 
| 228 | 227 |     //! | 
| 229 | 228 |     //! \brief Get the beacon public key if advertisement succeeded. | 
| 230 | 229 |     //! | 
| 231 |  | -    //! \return An object that contains a reference to the beacon public key | 
| 232 |  | -    //! if advertisement succeeded or does not. | 
|  | 230 | +    //! \return An object that points to the beacon public key if advertisement | 
|  | 231 | +    //! succeeded or does not. | 
| 233 | 232 |     //! | 
| 234 |  | -    boost::optional<CPubKey&> TryPublicKey(); | 
|  | 233 | +    CPubKey* TryPublicKey(); | 
| 235 | 234 | 
 | 
| 236 | 235 |     //! | 
| 237 | 236 |     //! \brief Get the beacon public key if advertisement succeeded. | 
| 238 | 237 |     //! | 
| 239 |  | -    //! \return An object that contains a reference to the beacon public key | 
| 240 |  | -    //! if advertisement succeeded or does not. | 
|  | 238 | +    //! \return An object that points to the beacon public key if advertisement | 
|  | 239 | +    //! succeeded or does not. | 
| 241 | 240 |     //! | 
| 242 |  | -    boost::optional<const CPubKey&> TryPublicKey() const; | 
|  | 241 | +    const CPubKey* TryPublicKey() const; | 
| 243 | 242 | 
 | 
| 244 | 243 |     //! | 
| 245 | 244 |     //! \brief Get a description of the error that occurred, if any. | 
|  | 
0 commit comments