Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

BOOST_FT_AUTODETECT_CALLING_CONVENTIONS ignored when including <boost/uuid/random_generator.hpp>

Open
#7 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
compilers

Research direction

Reproduce the Windows-x86 include sequence using <boost/uuid/random_generator.hpp> followed by <boost/function_types/config/config.hpp>, with BOOST_FT_AUTODETECT_CALLING_CONVENTIONS defined first. Inspect boost/function_types/detail/encoding/aliases_[un]def.hpp and the handling of callable_builtin. Done means boost::function_types::stdcall_cc remains defined for this include order and the reported compilation succeeds.

Written by the indexing model from the issue text.

Description

Hi,

I' ve got a project which uses Boost.UUID and function_types.
When compiling for Windows-x86 I define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS before including
<boost/uuid/random_generator.hpp>
thereafter I include
<boost/function_types/config/config.hpp>

but then "boost::function_types::stdcall_cc" is not defined.
There seems to be a problem with the define/undef of the macro "callable_builtin" in <boost/function_types/detail/encoding/aliases_[un]def.hpp>

When I first include <boost/function_types/config/config.hpp>the type "boost::function_types::stdcall_cc" is defined.
I'm not sure if the define/undef of the macro "callable_builtin" could even violate ODR.

Dominant language
C++
Stars
9
Forks
42
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/function_types

All issues in boostorg/function_types

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.