forked from microsoft/xlang
-
Notifications
You must be signed in to change notification settings - Fork 2
Issues
Raymond Chen edited this page Apr 2, 2019
·
9 revisions
-
write_printf
should not crash if the result of thesprintf
exceeds 128 characters. -
flush_to_file
writes the file in binary format, which does not match the behavior offlush_to_console
, which is text format.
-
get_list
does not validate thatfirst
is beforelast
. (Corrupted database.)
-
as
does not validate alignment, can result in bus errors on alignment-sensitive systems.
-
Params()
method returns a const vector instead of a pair of iterators like everybody else.
- Contains a
m_cmod
which is never used. Are we missing aCustomMod()
member function? - PropertSig also has
m_param_count
andm_params
that are never used.
-
It seems that the row is biased by 1 so that
operator bool()
can test the raw index against zero to determine whether thecoded_index
is empty. But why do it this way, instead of lettingm_table == nullptr
be the representation of an empty coded index, the same way thatrow_base
represents empty rows? Is this a leftover from a previous version ofcoded_index
that did not keep a pointer to the table? -
Why isn't
get_row
markednoexcept
? It seems that all the functions it calls are noexcept, soget_row
should also be noexcept.