gregorian::date/date_time deserialized via exception handling

Open
#108 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
backend

Research direction

Start by reading greg_serialize.hpp and trace the boost::gregorian::date and date_time deserialization path, especially the catch for bad_lexical_cast. Confirm how typical uninitialized datetime values are handled and verify that the special-value path no longer relies on exception handling while preserving deserialization behavior.

Written by the indexing model from the issue text.

Description

The deserialization of boost::gregorian::date in greg_serialize.hpp relies on exception handling ("catch(bad_lexical_cast&") for deserializing "special" values, which causes unnecessary delays in the typical case of deserializing uninitialized datetime values.

Dominant language
C++
Stars
70
Forks
99
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/date_time

All issues in boostorg/date_time

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.