Skip to content

Commit

Permalink
Chapter02 recipes 6 fixed build in C++14 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Apr 8, 2017
1 parent 15b7037 commit 35ff951
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Chapter02/06_function_fpointer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ int main() {
process_integers(&my_ints_function);
}

#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
#include <string>
int something(std::string&&){ return 0; }
#endif


#include <assert.h>
void my_ints_function(int i) { assert(i == 10); }
void process_integers(const fobject_t& f) {
Expand Down

0 comments on commit 35ff951

Please sign in to comment.