Skip to content

use c++ standard stream function in StrCat will be fail #1247

@fansehep

Description

@fansehep

Describe the bug

If i use the StrCat in this case

std::string test () {
  return absl::StrCat(std::setw(sizeof(uint64_t)), std::setfill('0'), "some other things");
}

it will be fail. I want to know dose abseil-cpp provide similar function to control output?
Steps to reproduce the bug

It's important that we are able to reproduce the problem that you are
experiencing. Please provide all code and relevant steps to reproduce the
problem, including your BUILD/CMakeLists.txt file and build commands. Links
to a GitHub branch or godbolt.org that demonstrate the
problem are also helpful.

What version of Abseil are you using?

What operating system and version are you using

If you are using a Linux distribution please include the name and version of the
distribution as well.

What compiler and version are you using?

Please include the output of gcc -v or clang -v, or the equivalent for your
compiler.

What build system are you using?

Please include the output of bazel --version or cmake --version, or the
equivalent for your build system.

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions