Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Revisions: Issue #2770 Back to Issue ]
Summary 0002770: error: use of undeclared identifier 'nullptr'
Revision 2016-07-02 12:19 by Dusk
Description Recent commits added these bits of code into a_strifeitems.cpp:


bool ARaiseAlarm::SpecialDropAction (AActor *dropper)
{
    if (dropper->target != nullptr)
    {
        ...

bool ACloseDoor222::SpecialDropAction (AActor *dropper)
{
    EV_DoDoor (DDoor::doorClose, NULL, dropper, 222, 2*FRACUNIT, 0, 0, 0);
    if (dropper->target != nullptr)
    {
        ...


nullptr is a C++11 only identifier, so the above causes compilation errors on Linux, as GCC and Clang (unlike MSVC) do not default to C++11 by default.
Revision 2016-07-02 12:22 by Dusk
Description Changeset dd923895a4f4 added these bits of code into a_strifeitems.cpp:


bool ARaiseAlarm::SpecialDropAction (AActor *dropper)
{
    if (dropper->target != nullptr)
    {
        ...

bool ACloseDoor222::SpecialDropAction (AActor *dropper)
{
    EV_DoDoor (DDoor::doorClose, NULL, dropper, 222, 2*FRACUNIT, 0, 0, 0);
    if (dropper->target != nullptr)
    {
        ...


nullptr is a C++11 only identifier, so the above causes compilation errors on Linux, as GCC and Clang (unlike MSVC) do not default to C++11 by default.






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker