[Poppler-bugs] [Bug 101816] New: Add nullptr support for VS2008

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 17 10:05:24 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101816

            Bug ID: 101816
           Summary: Add nullptr support for VS2008
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: Windows (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: Thomas.Freitag at alfa.de

Created attachment 132729
  --> https://bugs.freedesktop.org/attachment.cgi?id=132729&action=edit
nullptr patch

Actual poppler can't be compiled anymore with VS2008 on windows. Reason for it
is the usage of nullptr, which was introduced not before VS2010.
To make it compilable with VS2008 again, this patch uses an idea from Scott
Meyers c++ book where he suggests to use a header with a class that emulates
nullptr.

This has the advantage of using the same keyword and makes upgrading to a new
compiler visual studio a fair bit easier.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20170717/e7ea7a09/attachment-0001.html>


More information about the Poppler-bugs mailing list