Skip to content

一時オブジェクトが渡される関数が参照渡しになっている #23

Description

@ai2playgame

KeyFrame(unsigned int fno, DirectX::XMVECTOR& q,const DirectX::XMFLOAT2& ip1,const DirectX::XMFLOAT2& ip2):

void RecursiveMatrixMultipy(BoneNode* node, DirectX::XMMATRIX& mat);

一時オブジェクトが渡されることを想定している関数のシグネチャが参照渡しになっています。 VS2017.15.5以降、デフォルトで有効になっている/permissive-オプションが有効な時、このコードは通りません。
const参照渡しに書き換えるべきです。

参考
https://docs.microsoft.com/ja-jp/cpp/build/reference/permissive-standards-conformance?view=vs-2019

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions