message: Change boost optional to compare boost::none
diff: @@ -76,11 +76,11 @@ CObjectSchemaItem::SMember::SMember(
  bool CObjectSchemaItem::SMember::CheckHistoryFieldVersion(
  const utils::SemanticVersion& MessageVersion) const {
  if (MessageVersion.isValid()) {
  - if (mSince.is_initialized()) {
  + if (mSince != boost::none) {
  if (MessageVersion < mSince.get()) {
  return false; // Msg version predates `since` field
  } else {
  - if (mUntil.is_initialized() && (MessageVersion >= mUntil.get())) {
  + if (mUntil != boost::none && (MessageVersion >= mUntil.get())) {
  return false; // Msg version newer than `until` field
  } else {
  return true; // Mobile msg version falls within specified version
  @@ -89,7 +89,7 @@ bool CObjectSchemaItem::SMember::CheckHistoryFieldVersion(
  }
  }
  - if (mUntil.is_initialized() && (MessageVersion >= mUntil.get())) {
  + if (mUntil != boost::none && (MessageVersion >= mUntil.get())) {
  return false; // Msg version newer than `until` field
  } else {
  return true; // Mobile msg version falls within specified version range
  @@ -168,14 +168,14 @@ Errors::eType CObjectSchemaItem::validate(
  const SMember& member = it->second;
  std::set<std::string>::const_iterator key_it = object_keys.find(key);
  if (object_keys.end() == key_it) {
  - if (member.mSince.is_initialized() &&
  + if (member.mSince != boost::none &&
  MessageVersion < member.mSince.get() &&
  member.mHistoryVector.size() > 0) {
  // Message version predates parameter and a history vector exists.
  for (uint i = 0; i < member.mHistoryVector.size(); i++) {
  - if (member.mHistoryVector[i].mSince.is_initialized() &&
  + if (member.mHistoryVector[i].mSince != boost::none &&
  MessageVersion >= member.mHistoryVector[i].mSince.get()) {
  - if (member.mHistoryVector[i].mUntil.is_initialized() &&
  + if (member.mHistoryVector[i].mUntil != boost::none &&
  MessageVersion >= member.mHistoryVector[i].mUntil.get()) {
  // MessageVersion is newer than the specified "Until" version
  continue;
  @@ -189,9 +189,8 @@ Errors::eType CObjectSchemaItem::validate(
  }
  break;
  }
  - } else if (member.mHistoryVector[i].mSince.is_initialized() ==
  - false &&
  - member.mHistoryVector[i].mUntil.is_initialized() &&
  + } else if (member.mHistoryVector[i].mSince == boost::none &&
  + member.mHistoryVector[i].mUntil != boost::none &&
  MessageVersion < member.mHistoryVector[i].mUntil.get()) {
  if (member.mHistoryVector[i].mIsMandatory == true &&
  (member.mHistoryVector[i].mIsRemoved == false)) {
  