Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix return types #34

Merged
merged 4 commits into from Feb 17, 2019
Merged

Fix return types #34

merged 4 commits into from Feb 17, 2019

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Feb 16, 2019

C++11モードではmoveの妨げになるので戻り値の型からconstを取り除きます。実際のところmoveではなくコピーの省略(Return value optimization)へすでに最適化されているパターンが多いので体感できるほどのパフォーマンスの変化はありません。

C++11モードではmoveの妨げになるので戻り値のconstを取り除く
C++11モードではmoveの妨げになるので戻り値のconstを取り除く
算術型の引数と戻り値はconst参照を取り除き値渡し/値返しする
C++11モードではmoveの妨げになるので戻り値のconstを取り除く
@yama-natuki yama-natuki merged commit 4b5d473 into JDimproved:master Feb 17, 2019
@yama-natuki
Copy link
Collaborator

ありがとうございます。

@ma8ma ma8ma deleted the fix-return-types branch February 17, 2019 01:36
@ma8ma ma8ma added this to Done in State of JDim-v0.1.0+ Feb 17, 2019
ma8ma added a commit to ma8ma/JDim that referenced this pull request Feb 17, 2019
masterブランチの更新をgtk3-previewに反映する
* JDimproved#33
* JDimproved#34
* JDimproved#35
* JDimproved#36

Closes #27
@ma8ma ma8ma added the feature 機能の追加と削除 label Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 機能の追加と削除
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants