Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Can I use module feature als substitute for header file?  (Read 889 times)

0 Members and 2 Guests are viewing this topic.

Vi233

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Can I use module feature als substitute for header file?
« on: March 21, 2024, 10:09:32 pm »
 Hi, everyone, nice to meet you all here! :D :D

I'm totally fresh with SFML, so I wanted to use some new features of C++ such as Module.
Does the lastest version of SFML support the C++20 or 23 standard? I've tried some, but it worked not so well.

Thanks all of u! :-* :-*

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11027
    • View Profile
    • development blog
    • Email
Re: Can I use module feature als substitute for header file?
« Reply #1 on: March 21, 2024, 10:18:16 pm »
Hi and welcome! :)

No, SFML 2 is on C++03 and SFML 3 which is still work-in-progress will be C++17 and thus won't support modules.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Vi233

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Can I use module feature als substitute for header file?
« Reply #2 on: March 21, 2024, 11:07:41 pm »
Thank u very much! :D
And I'll just keep using the header files. However, as a beginner it's a little hard to balance the old and new features of C++. I'm trying to learn something new. ;D

 

anything