$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2023-01-28 04:34:17
Klemens Morgenstern wrote:
> > Klemens Morgenstern wrote:
> > > Additionally, I feel some need for a library managing raw memory. It's
> > quite
> > > common to just use vector<unsigned char>, but I find this incorrect,
> > because
> > > it's typed. Raw memory doesn't have a type, which is why malloc returns
> > > void* and not unsigned char*.
> >
> > Raw memory bytes do have a type, and it's `unsigned char`.
> >
> >
> Then why do malloc and operator new return void* ?
Because in C, you can assign void* to X* without a cast.