You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You must ensure that the source and input handler exist as long as does `csv_reader`, as `csv_reader` holds pointers to but does not own these objects.
50
49
51
50
(2) Constructs a `csv_reader` that that reads from a character sequence or stream `source`, a [json_content_handler](../json_content_handler.md) that receives
52
51
JSON events, and [csv_options](csv_options.md).
53
-
You must ensure that the source and input handler exist as long as does `csv_reader`, as `csv_reader` holds pointers to but does not own these objects.
54
52
55
53
(3) Constructs a `csv_reader` that reads from a character sequence or stream `source`, a [json_content_handler](../json_content_handler.md) that receives
56
54
JSON events and the specified [parse_error_handler](../parse_error_handler.md).
57
55
Uses default [csv_options](csv_options.md).
58
-
You must ensure that the source, input handler, and error handler exist as long as does `csv_reader`, as `csv_reader` holds pointers to but does not own these objects.
59
56
60
57
(4) Constructs a `csv_reader` that reads from a character sequence or stream `source`, a [json_content_handler](../json_content_handler.md) that receives
61
58
JSON events, [csv_options](csv_options.md),
62
59
and the specified [parse_error_handler](../parse_error_handler.md).
63
-
You must ensure that the source, input handler, and error handler exist as long as does `csv_reader`, as `csv_reader` holds pointers to but does not own these objects.
60
+
61
+
Note: It is the programmer's responsibility to ensure that `basic_csv_reader` does not outlive any source,
62
+
content handler, and error handler passed in the constuctor, as `basic_csv_reader` holds pointers to but does not own these resources.
0 commit comments