This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 1254 - Adding dummy constructor in file "TensorDeviceThreadPool.h" for struct "ThreadPoolDevice"
Summary: Adding dummy constructor in file "TensorDeviceThreadPool.h" for struct "Threa...
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: Tensor (show other bugs)
Version: 3.3 (current stable)
Hardware: All All
: Normal Feature Request
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-15 16:54 UTC by Matthias Peschke
Modified: 2019-12-04 15:59 UTC (History)
5 users (show)



Attachments

Description Matthias Peschke 2016-07-15 16:54:42 UTC
Overview:
With the current implementation, it is not possible to declare an instance of struct ThreadPoolDevice and initialize the instance later to a specific value.
This feature would allow to write wrapper classes, which have a member variable of type ThreadPoolDevice.

A simple dummy constructor would help:
ThreadPoolDevice() {};

Example wrapper class:
______________________________________________________
template<class device_type>
class TensorDevice
{
public:
    TensorDevice<device_type>() {};
    device_type get() const;
private:
    device_type device;
};
______________________________________________________
Comment 1 Nobody 2019-12-04 15:59:19 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1254.

Note You need to log in before you can comment on or make changes to this bug.