FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: use unique_ptr for http2_state by fhinkel · Pull Request #17078 · nodejs/node · GitHub

/ node Public

src: use unique_ptr for http2_state - #17078

Closed
fhinkel wants to merge 1 commit into
nodejs:masterfrom
fhinkel:nov/uniq_ptr_http2_state
Closed

src: use unique_ptr for http2_state#17078
fhinkel wants to merge 1 commit into
nodejs:masterfrom
fhinkel:nov/uniq_ptr_http2_state

Conversation

fhinkel commented Nov 16, 2017

Copy link
Copy Markdown
Contributor
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

src

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. labels Nov 16, 2017
fhinkel requested a review from addaleax November 19, 2017 08:40
addaleax added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Nov 19, 2017

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member

https://ci.nodejs.org/job/node-test-commit-linux/nodes=ubuntu1710-x64/14240/console says:

In file included from ../src/inspector_agent.h:13:0,
                 from ../src/env.h:30,
                 from ../src/env-inl.h:28,
                 from ../src/base_object-inl.h:28,
                 from ../src/async_wrap-inl.h:28,
                 from ../src/async_wrap.cc:22:
../src/node_platform.h:81:45: error: ‘function’ is not a member of ‘std’
   typedef std::unique_ptr<DelayedTask, std::function<void(DelayedTask*)>>
                                             ^~~~~~~~
../src/node_platform.h:81:45: note: suggested alternative: ‘is_function’
   typedef std::unique_ptr<DelayedTask, std::function<void(DelayedTask*)>>
                                             ^~~~~~~~
                                             is_function
../src/node_platform.h:81:45: error: ‘function’ is not a member of ‘std’
../src/node_platform.h:81:45: note: suggested alternative: ‘is_function’
   typedef std::unique_ptr<DelayedTask, std::function<void(DelayedTask*)>>
                                             ^~~~~~~~
                                             is_function
../src/node_platform.h:81:72: error: template argument 2 is invalid
   typedef std::unique_ptr<DelayedTask, std::function<void(DelayedTask*)>>
                                                                        ^~
node.target.mk:202: recipe for target '/home/iojs/build/workspace/node-test-commit-linux/nodes/ubuntu1710-x64/out/Release/obj.target/node/src/async_wrap.o' failed

addaleax removed the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Nov 19, 2017

fhinkel commented Nov 19, 2017

Copy link
Copy Markdown
Contributor Author

Thanks for running the CI and spotting the error. Looks like -std=c++0x is missing. I'll look into it.

Copy link
Copy Markdown
Member

@fhinkel I’d guess it’s just a missing #include?

Copy link
Copy Markdown
Member

addaleax added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Nov 19, 2017

Copy link
Copy Markdown
Member

Landed in 2d50b5e

addaleax closed this Nov 19, 2017
addaleax pushed a commit that referenced this pull request Nov 19, 2017
PR-URL: #17078
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
addaleax removed the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Nov 28, 2017
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
PR-URL: #17078
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins mentioned this pull request Dec 12, 2017
gibfahn pushed a commit that referenced this pull request Dec 19, 2017
PR-URL: #17078
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
gibfahn mentioned this pull request Dec 20, 2017
gibfahn pushed a commit that referenced this pull request Dec 20, 2017
PR-URL: #17078
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
gibfahn mentioned this pull request Dec 20, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL