Skip to main content
Code Review

Return to Question

replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link

Originally asked here: Dynamically call lambda based on stream input Dynamically call lambda based on stream input

The following version is based heavily on the answer provided by @iavr @iavr, though I hope that I have done enough more to make it worth reviewing again.

Originally asked here: Dynamically call lambda based on stream input

The following version is based heavily on the answer provided by @iavr, though I hope that I have done enough more to make it worth reviewing again.

Originally asked here: Dynamically call lambda based on stream input

The following version is based heavily on the answer provided by @iavr, though I hope that I have done enough more to make it worth reviewing again.

deleted 13 characters in body; edited tags
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

The following version is based heavily on the answer provided by @iavr , though I hope that I have done enough more to mkaemake it worth reviewing again.

The actual calling of the functor based on reading data from a stream (via ResultSetRowResultSetRow (but I am sure that can be easily generalized)).

Done in 2 parts:
This

This is the part you call:

Part 2:
Here

Here we extract the parameters from the stream then call the action.

###Edit 1:

Here it will read an int (IDID), a std::string (personperson) a double (item1item1) and a float (item2item2) from the stream (represented by row). Then, then call the lambda provided.

The following version is based heavily on the answer provided by @iavr though I hope that I have done enough more to mkae it worth reviewing again.

The actual calling of the functor based on reading data from a stream (via ResultSetRow (but I am sure that can be easily generalized)).

Done in 2 parts:
This is the part you call:

Part 2:
Here we extract the parameters from the stream then call the action.

###Edit 1:

Here it will read an int (ID), a std::string (person) a double (item1) and a float (item2) from the stream (represented by row). Then call the lambda provided.

The following version is based heavily on the answer provided by @iavr , though I hope that I have done enough more to make it worth reviewing again.

The actual calling of the functor based on reading data from a stream (via ResultSetRow (but I am sure that can be easily generalized)).

Done in 2 parts:

This is the part you call:

Part 2:

Here we extract the parameters from the stream then call the action.

Here it will read an int (ID), a std::string (person) a double (item1) and a float (item2) from the stream (represented by row), then call the lambda provided.

Added c++14 tag.
Link
Morwenn
  • 20.2k
  • 3
  • 69
  • 132
edited tags
Link
200_success
  • 145.5k
  • 22
  • 190
  • 478
Loading
Tweeted twitter.com/#!/StackCodeReview/status/452582744410050560
added 566 characters in body
Source Link
Loki Astari
  • 97.7k
  • 5
  • 126
  • 341
Loading
added 566 characters in body
Source Link
Loki Astari
  • 97.7k
  • 5
  • 126
  • 341
Loading
Source Link
Loki Astari
  • 97.7k
  • 5
  • 126
  • 341
Loading
lang-cpp

AltStyle によって変換されたページ (->オリジナル) /